rchEnableLPS (Function)

Top  Previous  Next

Architecture:

NX32 / NX32L

Firmware version:

4.40 / 1.00.00


This function controls whether Large Packet Support (LPS) is used when communicating over the  RTCU Communication Hub.

This function is functionally identical to and interchangeable with the gwEnableLPS function.
 

The mode selected by this function takes effect when opening a RTCU Communication Hub session with rchOpen, gwOpen, netOpen or gprsOpen.

To make the change take effect immediately then any active RTCU Communication Hub session must be terminated/suspended, using rchSuspend or rchClose.

 

 

Input:        

enable : BOOL

Enable or disable Large Packet Support (LPS).

 

Returns: BOOL

TRUE

- Success.

FALSE

- Not supported.

 

Declaration:

FUNCTION rchEnableLPS : BOOL;
VAR_INPUT
   enable : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 

gsmPower(power := TRUE);

 
// Disable Large Packet Support

rchEnableLPS(enable := OFF);

 
netOpen(iface:=1);
   ...
 
BEGIN
   ...
END;
END_PROGRAM;