Was there any development recently to use MQTT protocol to publish Bulk data or JSON object to ThingSpeak?

Aryaman Patel on 24 Feb 2021
Latest activity Reply by Aryaman Patel on 25 Feb 2021

I wanted to use MQTT to publish data to my ThingSpeak client. However, on one of the forums it said, "The MQTT broker does not presently parse JSON".

Christopher Stapels
Christopher Stapels on 24 Feb 2021

You cannot presently update more than one feed at a time via the ThingSpeak MQTT broker. (You can update multiple fields, the doc is here ) The format for the message is field1=1.2&field2=2.1 etc. You can send a JSON object to the write and bulk write endpoints in the REST API. Can you describe your application to make the need for bulk post with MQTT clear?

Aryaman Patel
Aryaman Patel on 25 Feb 2021

Since ThingSpeak only updates one data point in 15 sec I wanted to send the data points collected in a buffer for a single field as a bulk. I am already using REST api for the purpose, however, I read that MQTT protocols are better alternatives to HTTP for IoT applications and other advantages. Hence, I wanted to make a shift to a better alternative by sending the same JSON object using MQTT protocol. Is this possible?