gprsSetModemInit (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

2.60 / 1.00.00


This function will set the modem initialization string parameter for making connection via mobile networks. It has the same effect as setting the parameters via Device: Network: Network Settings in the RTCU IDE.

The changes will take effect the next time the mobile network session is opened (gprsOpen function is called).

 

 

Input:

init : STRING (Max 254 characters)

The initialization parameters that need to be sent to the GSM module to set up a mobile network connection.

 

 

Returns:INT

0

- Success.

1

- String too long.

 

Declaration:

FUNCTION gprsSetModemInit;
VAR_INPUT
  init : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
...
gprsSetModemInit(init := "AT+CBST=0,0,1");
...
gprsOpen();
...
 
END_PROGRAM;