Connection of a MQTT DEVICE to THINGSPEAK
Angelo Stefano
on 13 Dec 2024
Latest activity Reply by Angelo Stefano
on 13 Dec 2024
I have a device that via GPRS publish correctly, after autentication to the server mqtt3.thingspeak.com , a lot of datas like:
.{"sensorDatas":[{"flag":"COUNT","value":1},...........,{"flag":"AI1","value":25.80}]}
I configure a correct Channel with a field called AI1, but I can't fill it with that value 25.80.
I am sure that the device communicate to the server the string {"flag":"AI1","value":25.80} but nothing.
Could you tell me what I have to do? Probably I have to write some software code, may someone help me?
Are there some examples for a beginner like me?
Thank you very much
2 Comments
Time DescendingUhmmm....not so easy.
:-)
I believed was more user friendly.
It is ok if you can use ESP , ARDUINO and its Libraries suitable for Thingspeak, but if not it is hard.
Thank you!
The data in the ThingSpeak channel is organized in specific fields. See the documentation here. I believe you will need some sort of translation layer that converts form your device's schema "flag", "value" etc. to the ThingSpeak schema "field1", "field2", etc.
Sign in to participate