gprsOpen (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.00 / 1.00.00

Deprecated:

Use netOpen(iface:=1) instead


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.

 

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 cellular network session terminates, the firmware will automatically reconnect and establish the cellular 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"