LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 196 of 273
#SSENDUDP – send UDP data to a specific remote host
Example
Starts listening on <LocPort>(previous setting of firewall through #FRWL has to be done)
AT#SLUDP=1,1,<LocPort>
OK
SRING: 1 //
UDP data from a remote host available
AT#SA=1,1
OK
SRING: 1
AT#SI=1
#SI: 1,0,0,23,0
// 23 bytes to read
OK
AT#SRECV=1,23
#SRECV:1,23
message from first host
OK
AT#SS=1
#SS: 1,2,<LocIP>,<LocPort>,<RemIP1>,<RemPort1>
OK
AT#SSENDUDP=1,<RemIP1>,<RemPort1>
>response to first host
OK
SRING: 1 //
UDP data from a remote host available
AT#SI=1
#SI: 1,22,23,24,0
// 24 bytes to read
OK
AT#SRECV=1,24
#SRECV:1,24
message from second host
OK
AT#SS=1
#SS: 1,2,<LocIP>,<LocPort>,<RemIP2>,<RemPort2>
OK
Remote host has changed, we want to send
Содержание LE910-SKG
Страница 1: ......