![Ebyte E103-W07 User Manual Download Page 33](http://html.mh-extra.com/html/ebyte/e103-w07/e103-w07_user-manual_530473033.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
32
AT+MESEND="7c:df:a1:00:e8:38",11\r\n
>
STEP 5.
After the module returns ">", the data can be sent
Hello mesh.
+OK:11\r\n
STEP 6.
The root node actively reports after receiving the data
+MEDAT:11,"7c:df:a1:05:8c:76",hello mesh.
6.4 Socket communication
Only Root nodes can communicate with sockets. If it is a non-router network, the Root node also does not use
socket communication. Socket is only used for communication between the root node and the external network. If the
child node needs to communicate with the external network, it needs to be forwarded by the Root node.
6.4.1 TCP Client
STEP 1.
Create a TCP Server on the PC, monitor port 6001, and PC local IP: 192.168.0.205;
STEP 2.
ROOT node creates TCP Client:
AT+CIPSTART=0,"TCP","192.168.0.205",6001\r\n
+OK\r\n
After the creation is completed, the communication can be completed.
6.4.2 TCP Server
STEP 1.
Create TCP Server. Listening port: 60000
AT+CIPSERVER=1,60000\r\n
+OK\r\n
STEP 2.
After the ROOT node service is created, the PC creates a client and connects to the Root node. After the ROOT node TCP
Server has a new Client connection, the ROOT node actively reports:
+IP:"CONNECT",1,"192.168.0.205",59924
The ROOT node outputs this information to indicate that the remote client has successfully connected to the Server.
From then on, it can communicate.
6.4.3 Socket communication
STEP 1.
Send data (hello mesh.) to link 0 (the TCP cline created above)
AT+CIPSEND=0,10\r\n
>
STEP 2.
Wait for the module to return ">", then send data (hello mesh.)
hello mesh.