gsmGetIMSI (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


gsmGetIMSI will return the IMSI number of the SIM card installed in the RTCU device. Only the last 15 digits of the IMSI number will be returned. The IMSI number is a unique number that identifies the SIM card.

If no SIM card is installed, this function will return an empty string.

 

Note:

* The first 5 digits in the IMSI number is the Public Land Mobile Network number (PLMN) of the home network.

* If gsmPower is not called before this function, an empty string will be returned.

 

Input:

None.

 

Returns: STRING

The IMSI number of the SIM card.

 

Declaration:

FUNCTION gsmGetIMSI : STRING;

 

 

Example:

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