gprsOpen (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


This starts up the cellular network connection to the internet.

 

It must be called before any communication that uses the cellular network can occur. The network connection has not actually been established when this function returns. The gprsConnected() function will indicate when the network connection has been established and is ready for communication.

 

An incoming data call (CSD) will terminate the mobile network session which will then automatically be restored when the data call terminates.

 

When the network session is opened, there is no need for further intervention from the VPL program to keep the session up. If, for some reason, the mobile network session terminates, the firmware will automatically reconnect and establish the mobile network session again.

 

 

Input:

None.

 

 

Returns: INT

0

- Success.

1

- GSM module is powered off.

2

- Cellular network not supported by device.

 

 

Declaration:

FUNCTION gprsOpen : INT;

 

 


Example:

 

Please see the "Examples - Socket Communication"