This function checks whether the GSM module is connected to a GSM base station or not.
Input:
None.
Returns: BOOL
TRUE:
Connected to a base station.
FALSE:
Not connected to a base station.
Declaration:
FUNCTIONgsmConnected:BOOL;
Example:
INCLUDE rtcu.inc PROGRAM test; BEGIN ... // Check for successful connection to a GSM base station IFgsmConnected()THEN // RTCU is connected to a base station ... ELSE // RTCU is NOT connected to a base station ... END_IF; END; END_PROGRAM;