gsmGetICCID (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

2.20 / 1.00.00


gsmGetICCID will return the ICCID (SIM card) number of the SIM card installed in the RTCU device. If no SIM card is installed, this function will return an empty string.

Note: if gsmPower is not called before this function, an empty string will be returned.

 

 

Input:

None.

 

Returns: STRING

The ICCID number of the GSM module.

 

Declaration:

FUNCTION gsmGetICCID : STRING;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
gsmPower(power := ON);
 
BEGIN
  ...
DebugMsg(message := gsmGetICCID());
  // The ICCID number is shown in the debug window
  ...
END;
 
END_PROGRAM;