Contributed by 黎明将至!, organized by Ai-Thinker
Ai-WB2-32S AT+SOCKET Series Commands
Preface
1. Usage Notes?
- Make sure the device is connected to the network
- It can connect to a TCP server to request data from and send data to the server
2. Usage Example
Code Usage Flow
Test with the Ai-Thinker transparent transmission cloud cloud link

Click to expand full code
javascript
AT
+
WMODE
=
1
,
1
(设置
Ai
-
WB2
-32S模组为
STA
模式)
AT
+
WJAP
=
WiFi
账号,密码
AT
+
SOCKET
=
4
,
122.114
.122
.174
,
37217
(注意:这里端口三分钟内不连接,会自动刷新)
AT
+
SOCKETTT
(进入透传模式,发送+++不加换行可以退出透传模式)2. Example Diagrams



Original link: <https://blog.csdn.net/qq_54193285/article/details/135871895?spm=1001.2014.3001.5501>

