gsmGetIMEI (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


gsmGetIMEI will return the IMEI number of the GSM module installed in the RTCU device. The IMEI number is a 15 digit unique number that identifies the GSM module.

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

 

Input:

None.

 

Returns: STRING

The IMEI number of the GSM module.

 

Declaration:

FUNCTION gsmGetIMEI : STRING;

 

 

Example:

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