
-14-
v4.9
Initialization
2.7. Setting operator parameters
When the 3G module uses some services like IP connections (TCP/UDP), HTTP services, SMTP/POP3 or FTP transfers, it’s
mandatory to configure operator parameters like APN, login and password.
There are two ways to configure these settings. The first one is to use the definitions into the file Wasp3G.h.
#define _3G_APN
“apn”
#define _3G_LOGIN
“login”
#define _3G_PASSW
“password”
The second one is to use the function
set_APN()
.
Example of use:
{
// If only APN is necessary
_3G.set_APN(“provider_APN”);
// If APN, login and password are necessary
_3G.set_APN(“provider_APN”, “login”, “password”);
}