-18-
v7.3
Software
4.5. Checking network connection status
There are 2 functions to check the network connection status:
checkConnection()
and
checkDataConnection()
.
The
checkConnection()
function checks the module’s network connection status and returns whether the module:
•
is connected to a network
•
is not connected to a network
•
is searching for a new operator to register to
•
registration was denied
This function will wait for the module to be connected to a network for the specified time in second units.
Example of use:
{
_4G.checkConnection(60);
}
Possible error codes for this function:
•
1: not registered, the Mobile Equipment (ME) is not currently searching for a new operator to register to
•
2: not registered, but ME is currently searching for a new operator to register to
•
3: registration denied
•
4: unknown
The
checkDataConnection()
function checks the module’s network connection status, connects the module to
data service and returns whether the module:
•
is connected to data service
•
is not connected to a network
•
is searching for a new operator to register to
•
registration was denied
This function will wait for the module to be connected to a network for the specified time in second units.
Example of use:
{
_4G.checkDataConnection(60);
}
Possible error codes for this function:
•
1: not registered, ME is not currently searching for a new operator to register to
•
2: not registered, but ME is currently searching for a new operator to register to
•
3: registration denied
•
4: unknown
•
6: not registered, ME is not currently searching for a new operator to register to
•
8: not registered, but ME is currently searching for a new operator to register to
•
9: registration denied
•
10: unknown
•
12: if error setting APN
•
13: if error setting login
•
14: if error setting password
•
15: if error activating GPRS connection
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...