Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
57
AT+TCPLPORT=0,0
OK
The local port ID of link 0 is
allocated randomly.
Remarks
This command should have been executed before the
AT+TCPSETUP
command is
executed.
If you do not use this command, the local port ID will be allocated dynamically every
time the UDP link is set up.
The local port ID setting will not be saved after the module is powered off.
After running this command and setting up a link, you must reset the local port ID or run
AT+TCPLPORT=<socket>,0
directly if you want to set up another link.
9.18 Setting Local UDP Port: +UDPLPORT
Description
Setting Local UDP Port:
+UDPLPORT
Format
AT+UDPLPORT=<socket>,<port><CR>
Parameter
<socket>: Socket ID, ranging from 0 to 4
<port>: Port ID, ranging from 0, 4097 to 32767
Return
Value
See the Example.
Example
AT+UDPLPORT=0,6800
OK
Set the local port ID of link 0
to 6800.
AT+UDPLPORT=0,0
OK
The local port ID of link 0 is
allocated randomly.
Remarks
This command should have been executed before the
AT+UDPSETUP
command is
executed.
If you do not use this command, the local port ID will be allocated dynamically every
time the UDP link is set up.
The local port ID setting will not be saved after the module is powered off.
After running this command and setting up a link, you must reset the local port ID or run
AT+UDPLPORT=<socket>,0
directly if you want to set up another link.
9.19 Setting Socket Timeout Parameter: +SSTP
Description
To set the timeout period for the socket operations
Format
AT+SSTP=<n><CR>
AT+SSTP?<CR> (Query the current value of the timeout parameter)
AT+SSTP=?<CR> (Query the range of the timeout parameter)
Parameter
<n>: The timeout period, ranging from
8
to
30
, unit: s
Return
Value
+SSTP ERROR: INVALID VALUE (The parameter value exceeds the allowed range.)
OK