eLandon_Miix ff99ba9fa8 Initial commit | 3 anos atrás | |
---|---|---|
.. | ||
data | 3 anos atrás | |
README.md | 3 anos atrás | |
mqttRSSI.ino | 3 anos atrás |
This example is based on the description of the MQTT client application in the AutoConnect documentation. To experience this example, you need to prepare the ThingSpeak account and the channel for MQTT message exchange in advance.
The mqttRSSI equips with a custom Web page for configuring broker parameters. You can invoke the MQTT Setting web interface from the AutoConnect menu to configure for the mqtt broker performed on Thingspeak. This custom Web page is written in JSON and embedded in the sketch. Also, the mqttRSSI_FS example stores the JSON document in the flash of ESP8266/ESP32 module and separates it completely from the sketch. Instructions and the APIs for equipping custom Web pages are available in the documentation. (This example requires ArduinoJson version 5 or version 6 library.)
The ThingSpeak is the open IoT platform. It is capable of sending data privately to the cloud and analyzing, visualizing its data. If you do not have an account of ThingSpeak, you need that account to proceed further.
You can sign up with the ThingSpeak sign-up page. (You are entrusted with the final judgment of account creation for ThingSpeak. Create an account at your own risk.) And you can learn about other steps from the explanation page of this example.
A mqttRSSI requires the following three key data. After completing the above preparation you should be able to get the three key data. Specify those key data to the value
in each element of the param.json
file in the data
folder.
{
"name": "channelid",
"type": "ACInput",
"value": "",
"label": "Channel ID"
}
{
"name": "userkey",
"type": "ACInput",
"value": "",
"label": "User Key"
}
{
"name": "apikey",
"type": "ACInput",
"value": "",
"label": "API Key"
}
To param.json
file upload to ESP8266/ESP32 flash memory, you need use the plugin tools as sketch data uploader. You can get one (or both) of the plugins below and upload the param.json
file to the module.