-14-
v7.0
Software
3.5. Setting operator parameters
When the NB-IoT / Cat-M module uses data services like TCP/UDP connections, HTTP services, SMTP or FTP
transfers, it is mandatory to configure the parameters provided by the user’s Mobile Network Operator (MNO):
APN, login and password. The owner of a SIM should be notified with these parameters by the MNO.
The
set_APN()
function allows the user to save these parameters into Waspmote memory. Later, when data
connection functions are called, Waspmote will configure these parameters into the NB-IoT / Cat-M module.
Example of use:
{
BG96.set_APN(“apn”, ”login”, ”password”);
}
The show_APN() function allows the user to display the current settings stored in Waspmote’s memory which are
used by the libraries when data connections are performed.
Example of use:
{
BG96.show_APN();
}
Related variables:
BG96._apn
→
Stores the APN name
BG96._apn_login
→
Stores the APN login
BG96._apn_password
→
Stores the APN password