4,AT+CIPMUX=1 启动多连接
5,AT+CIPSERVER=1,8080 打开服务器端口为8080
6,AT+CIFSR 看一下你模块现在分得的ip是多少,因为只要模块连网就会重新分配ip地址。这也是网络助手里面远程主机栏要填写的ip地址
通信啥的就不多说了。
用模块做客户端
1 连接路由器AT+CWJAP="TP-LINK_A52","1234567890"
2 AT+CIPMUX=0 单连接
3 AT+CIPSTART="TCP","192.168.1.101",8080
后面就是发送数据,如果出现一直连接不上关闭电脑防火墙
多连接就不演示了,
AT+CIPSTART=0,"TCP","192.168.1.101",8080或
AT+CIPSTART=1,"TCP","192.168.1.101",8080或
AT+CIPSTART=2,"TCP","192.168.1.101",8080或
AT+CIPSTART=3,"TCP","192.168.1.101",8080或
AT+CIPSTART=4,"TCP","192.168.1.101",8080或
发送数据
AT+CIPSEND=0,20或
AT+CIPSEND=1,20或
AT+CIPSEND=2,20或
AT+CIPSEND=3,20或
AT+CIPSEND=4,20
|