WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
116
<length>: The length of the data to be sent, value ranges from
1
to
1024
, unit: byte.
Return Value
See the Example.
Example
AT+UDPSENDS=0,10
>1234567890
OK
+UDPSENDS:0,10
10-byte data is successfully sent
through socket 0.
AT+UDPSENDS=0,10
+UDPSENDS:SOCKET ID NOT ACTIVE
No socket has been set up using
socket 0.
AT+UDPSENDS=0,10
+UDPSENDS:ERROR
No UDP connection is set up on
socket 0 through listening, but some
connection of other type might have
been set up.
AT+UDPSENDS=0,10
>
+UDPSENDS:Error!TimeOut
10 seconds timed out. No data is
input. The module returns ERROR.
AT+UDPSENDS=0,4000
+UDPSENDS:DATA LENGTH ERROR
The sending length is incorrect.
Remarks
If the format is incorrect, the module returns
+UDPSENDS:ERROR
.
The client must send data to the server so that the server can send back data
through the socket that receives data.
This command is applicable to E9C33426 and later versions.
15.6 Querying the Socket Status on the Client:
+UDPCLIENTSTATUS
Description
To query the status of the socket on the client
Format
AT+UDPCLIENTSTATUS=<socket><CR>
Parameter
<socket>: The value of
AcceptSocket
, that is, the socket of the module. See the
description of the
AT+UDPLISTEN
command.
Return Value
+UDPCLIENTSTATUS:<socket>,<CONNECT or DISCONNECT>,<UDP or
INVALID>
<CONNECT or DISCONNECT>: Socket status, value: CONNECT or
DISCONNECT