Specifications

UC864-E/G/WD/WDU AT Commands Reference Guide
80304ST10041a Rev. 7 - 2010-10-14
Reproduction forbidden without Telit Communications S.p.A’s. written authorization - All Rights Reserved. Page 254 of 318
3.5.7.2.12. Socket Listen UDP - #SLUDP
#SLUDP - Socket Listen UDP
AT#SLUDP=<connId>,
<listenState>,
<listenPort>
This command opens/closes a socket listening for an incoming UDP
connection on a specified port.
Parameters:
<connId> - socket connection identifier
1..6
<listenState> -
0 - closes socket listening
1 - starts socket listening
<listenPort> - local listening port
1..65535
Note: if successful, commands returns a final result code OK . Then,
when there’s an incoming UDP connection on the local port and if the
sender is not filtered by internal firewall (see #FRWL
), an URC is
received:
SRING : <connId>
Afterwards we can use #SA
to accept the connection or #SH to refuse it.
If the socket is closed by the network the following URC is received:
#SLUDP: ABORTED
AT#SLUDP? Read command returns all the actual listening sockets.
AT#SLUDP=? Test command returns the range of supported values for all the
subparameters.
Example Next command opens a socket listening for UDP on port 3500.
AT#SLUDP=1,1,3500
OK