Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
25
4. UDP mode is not set, default is 0;
Example
AT+CIPSTART=0,"UDP","192.168.0.205",60001,60001,1
AT+CIPSTART=0,"UDP","192.168.0.205",60001,60001
AT+CIPSTART=0,"UDP","192.168.0.205",60001
5.6.3 AT+CIPCLOSE Close TCP and UDP communication
Instruction
Answer
Disconnect
specified
connection
AT+CIPCLOSE=[link ID]
+OK
Success
+ERR:[NUM]
Error
Disconnect all
AT+CIPCLOSE
Parameter
Link ID
Connection ID. Value range is 0~7
Description
1. Effective immediately;
2. This command can only disconnect the client. To disconnect the TCP server, the command AT+CIPSERVER
must be used.
3. After the disconnect command is issued, the module immediately responds with OK. After the connection is
completely disconnected, the module rIP: "DISCONNECT"
Example
AT+CIPCLOSE=0
5.6.4 AT+CIPSERVER Create and close TCP service
Instruction
Answer
Inquiry
AT+CIPSERVER=[enable],[LocalPort]
+OK
Success
+ERR:[NUM]
Error
Parameter
enable
0
Close service
1
Create service
LocalPort
TCP service listening port
Description
1. Effective immediately;
2. Disconnecting the service will disconnect all remote TCP Clients. After disconnecting from the remote TCP client,
the module rIP: "DISCONNECT"
Example
AT+CIPSERVER=1,60001
AT+ CIPSERVER=0
5.6.5 AT+CIPSEND send TCP UDP data
Instruction
Answer
Inquiry
AT+CIPSEND=[LinkID],[Length]
+OK
Success