gsmSetSMSSCN (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


This sets the SMS Service Center Address to use for all further transmission of SMS messages. On most SIM cards this is not necessary as the default SMS Service Center Address is stored on the SIM card by the GSM operator.

This function is only to be called before the GSM module is powered on, i.e. before gsmPower(power:=true) has been called.

 

Input:

number : STRING

The SMS Service Center Address to use when sending SMS messages from the device.

 

Returns:

None.

 

Declaration:

FUNCTION gsmSetSMSSCN;
VAR_INPUT
  number : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Set the SMS Service Center Address (number) to use (can be set before gsmPower() is called)
gsmSetSMSSCN(number :="+4540506070"); // Set the SMS Service Center Address (number)
 
// Turn on power to the GSM module
gsmPower(power := TRUE);
 
BEGIN
  ...
END;
 
END_PROGRAM;