Introduction: HOW TO USE AN ESP8266 TO CONNECT TO QNAP QIOT SUITE LITE?
In this tutorial, you will learn how to use MQTT to transmit and receive data to QIoT Suite Lite using an ESP8266. As the ESP8266 has different firmware, specifications and instructions, there are two common methods:
- ESP8266 useing Arduino Core
- ESP8266 useing AT Command combined with Arduino
Ready task (Using Arduino IDE to install the Library and establish IoT Application)
Step 1: in This Example, We Use MQTT (for More Information, Visit Https://pubsubclient.knolleary.net/ ).
Step 2: Add a New IoT Application (Refer to “How to Show DHT11 Data on QIoT Dashboard?
We use the “button“ and “led“ as examples (both Resource Name and Resource ID are “button“ and “led“).
Step 3: . Go to the “Rule” Page, Connect Your Data From “button” to the Dashboard and Also Send the Status to Your Device.
Step 4: Set Up QBroker Node: Set Up “button” Resource As “MQTT Message In”
Step 5: Set Up QDashboard: Use the Name “Button”
Step 6: Set Up Change Node: Move “msg.payload.value” to “msg.payload”
Step 7: Set Up QBroker Node: Set Up “led” Resource As “MQTT Message Out”
Step 8: Go to the “Dashboard” Page to See Your Button Status
For more examples of the json file, refer to the below link: