gsmConnected (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.00 / 1.00.00


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:

FUNCTION gsmConnected : BOOL;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
   ...
   // Check for successful connection to a GSM base station
   IF gsmConnected() THEN
      // RTCU is connected to a base station
      ...
   ELSE
      // RTCU is NOT connected to a base station
      ...
   END_IF;
END;
 
END_PROGRAM;