EasyManua.ls Logo

Neoway N11 V2 - Setting Up UDP Link (+UDPSETUP)

Neoway N11 V2
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
65
8 UDP Data Service
8.1 Setting Up UDP Link: +UDPSETUP
Description
To set up a UDP link
Format
AT+UDPSETUP=<n>,<ip>,<port><CR>
Parameter
<n>:Socket number, ranging from 0 to 4
<ip>: Destination IP address, in xx.xx.xx.xx format or domain name format
(www.XXXX.com)
<port>: Destination port ID in decimal ASCII code
Return Value
See the Example.
Example
AT+UDPSETUP=1,220.199.66.56,7000
OK
+UDPSETUP:1,OK
The link to 220.199.66.560.7000
is successfully set up on socket
1.
AT+UDPSETUP=0,neowayjsr.oicp.net,60010
OK
+UDPSETUP:0,OK
The connection to
neowayjsr.oicp.net,60010 is set
up on socket 0 successfully.
AT+UDPSETUP=0,58.60.184.213,11008
+UDPSETUP:0,FAIL
A TCP/UDP link has been set up
on socket 0.
AT+UDPSETUP=1,192.168.20.6,7000
OK
+UDPSETUP:0,FAIL
Fails to set up the connection to
192.168.20.6,7000 on socket 1
because socket 0 is unavailable.
AT+UDPSETUP=5,192.168.20.6,6800
+UDPSETUP:ERROR
The format or the AT command
is incorrect or the socket number
is incorrect.
AT+UDPSETUP=0.58.60.184.213.10012
+UDPSETUP:ERROR
The punctuations in the
command are incorrect.
AT+UDPSET=0,58.60.184.213,10012
The AT command is not

Table of Contents

Related product manuals