Migrate from https://cmakerhk.wordpress.com/2018/11/07/esp8266_tcp-ip/
Test Plan
for example:
Ubuntu Server IP: 192.168.31.217
ESP8266 IP : 192.168.31.210
Related Command on ESP8266
AT+CWMODE_DEF=3 AT+CWJAP_DEF="mySSID","myPassword" AT+CWJAP? AT+CIFSR
Use Ubuntu to Create a server:
nc -l 1234
–Then waiting for the connection
ESP8266:
Setup single connection
AT+CIPMUX=0 AT+CIPSTART="TCP","192.168.31.217",1234 AT+CIPSEND=10 >>1234567890 Recv 10 BYTE SEND OK +IPD,6:Hello AT+CIPSENDEX=10 # it will send when \0 is saw or length is met ///Throughput, AT+CIPMODE=1 AT+CIPSEND > send "+++" together to break the loop