N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
66
ERROR
complete.
Remarks
Use the AT+XIIC=1 command to set up a PPP link before running this command.
8.2 Sending UDP Data: +UDPSEND
Description
To send UDP data
The module will return> after this command is sent. Send UDP data 50 ms to 100
ms later.
Format
AT+UDPSEND=<n>,<length><CR>
Parameter
<n>: Socket number, ranging from 0 to 4. A UDP link is established on the socket.
<length>: The length of the data to be sent, ranging from 1 to 4096, unit: byte.
Return Value
If the AT command is input in correct format, the module returns >.
If the command is input in incorrect format, the module returns
ERROR
.
If the link has not been set up, the module returns
+UDPSEND:ERROR
.
After entering the command, input the data to be sent until the module
returns >.
If the UDP data is sent successfully, the module returns
+UDPSEND:<n>,<length>
.
<length>
indicates the length of data already
sent.
Example
AT+UDPSEND=0,2
>
OK
+UDPSEND:0,2
Send 2-byte data on socket 0. Then
send the characters to be sent 50 ms
to 100 ms after the module returns >.
The data is sent successfully.
AT+UDPSEND=0,1024
>
+UDPSEND:ERROR
Network congestion occurs when
1024-byte data is sent. Only some
data is sent successfully.
AT+UDPSEND=0,1025
+UDPSEND:DATA LENGTH ERROR
1025-byte data fails to be sent on
socket 0 because data length exceeds
the limit.
AT+UDPSEND=0
>
OK
21-byte data is successfully sent
through socket 0.The command ends
with \r if no data length is contained.
The data length should not exceed
Содержание N11 V2
Страница 1: ...N11 V2 AT Command Manual Issue 1 0 Date 2018 10 19 Neoway Product Document...
Страница 15: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 7 OK Remarks The default status setting is 7...
Страница 129: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 121 not support proactive time issuing...
Страница 134: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 126...