Ai-WB2 module's TCP-based MQTT connection server usage example
copyright © 2022 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 1 of 8
Ai-WB2 module's TCP-based MQTT connection server usage example
Ai-WB2 module's TCP-based MQTT connection server usage example
copyright © 2022 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 2 of 8
1. Preparations
Software and hardware to be prepared: Ai-WB2 series module or development board, Type-C data
cable.
2. Connect the router
Make sure that the module or development board is ready for printing, as shown below:
Send AT+CWMODE=1;AT+CWJAP=“WIFI name”, WIFI password”, for example, the
WIFI name I am testing is aithinker123, and the password is 123456789, as shown in the
following figure: