gwEnableLPS (Function)

Top  Previous  Next

Architecture:

NX32 / NX32L

Device support:

All

Firmware version:

4.40 / 1.00.00


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

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

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

 

 

Input:        

enable : BOOL

Enable or disable Large Packet Support (LPS).

 

Returns: BOOL

TRUE

- Success.

FALSE

- Not supported.

 

Declaration:

FUNCTION gwEnableLPS : BOOL;
VAR_INPUT
  enable : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 

gsmPower(power := TRUE);

 
// Disable Large Packet Support

gwEnableLPS(enable := OFF);

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