WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
113
15 UDP Server AT Commands
15.1 Setting UDP Listening for the Server: +UDPLISTEN
Description
To set the UDP listening for the server
Supporting 3 client connections
Format
AT+UDPLISTEN=<port>[,<recv_mode>]<CR>
AT+UDPLISTEN?<CR>
AT+UDPLISTEN=?<CR>
Parameter
<port>: Port number, ranging from 1 to 65535
<recv_mode>: Data receiving mode. The default value is 0.
0: Indicates that the data is output directly after the socket receives it.
1: Indicates that the data received is saved in the buffer and you can run
+IPNETREAD
to read it when necessary.
Return Value
<CR><LF>+UDPLISTEN:<socket>,OK<CR><LF>
Example
AT+UDPLISTEN=6000
+UDPLISTEN:0,OK
or
+UDPLISTEN:bind error
Listening port ID: 6000
The listening function of the server is
started.
Failed to bind
AT+UDPLISTEN=6000
+CME ERROR: 3
Set server listening before setting up
PPP connections.
AT+UDPLISTEN=6000
Listening...
Transparent listening has been set.
AT+UDPLISTEN=?
+UDPLISTEN: (1-65535),(0-1)
OK
Query the value range of the
listening port.
AT+UDPLISTEN?
+UDPLISTEN:listening status
Query the listening status. Here the
server is in the listening status.
AT+UDPLISTEN?
+UDPLISTEN:not listening
Query the listening status. Here the
server is not in the listening status.