![Ebyte E103-W07 Скачать руководство пользователя страница 34](http://html.mh-extra.com/html/ebyte/e103-w07/e103-w07_user-manual_530473034.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
33
+OK:11\r\n
STEP 3.
The PC receives the data:
hello mesh.
STEP 4.
The PC sends data to the module (hello mesh.)
hello mesh.
STEP 5.
After the module receives the data, it actively reports:
+IPD:0,11,"192.168.0.205",6001
hello mesh.
6.5 Mqtt communication
6.5.1 Configure, connect
STEP 1.
Configure MQTT user parameters:
AT+MQTTUSERCFG=1,"W07","W07","123456789"\r\n
+OK\r\n
STEP 2.
Configure MQTT connection parameters:
AT+MQTTCONNCFG=30,0,"lwt","wo7",1,1\r\n
+OK\r\n
STEP 3.
Connect to MQTT Broker
AT+MQTTCONN="mqtt.eclipseprojects.io",1883,0\r\n
+OK\r\n
STEP 4.
Wait for the successful connection of Mqtt. After the successful connection of Mqtt, take the initiative to input:
+MQTT:CONNECT
Since then, ROOT has been connected to the mqtt broker. The module will be used to subscribe to topics and
publish messages.
6.5.2 Subscribe to topics
Subscribe to the topic: /com/wws, the message quality is 2;
AT+MQTTSUB="/com/wws",2\r\n
+OK\r\n
After successfully subscribing to a topic, you can receive messages from the topic.
+MQTTSUBRECV:"/com/wws",10
hello mqtt
6.5.3 Release the news
Publish a message to the topic "/com/www"" (hello mqtt)
AT+MQTTPUB="/com/www",10,0,0\r\n
Содержание E103-W07
Страница 1: ...E103 W07 User Manual WIFI MESH ...