Hans on IoT

ThingSpeak, MATLAB, and the Internet of Things

Use MQTT to Send IoT Data to ThingSpeak 4

Posted by Hans Scharler,

MQTT is a common protocol used in IoT systems to connect low-level devices and sensors. MQTT is used to pass short messages to and from a broker. ThingSpeak has recently added an MQTT broker so devices can send messages to ThingSpeak. A message might contain the current temperature in an office collected by a sensor. ThingSpeak takes the message and stores its content in a ThingSpeak channel. Once the data is in a channel, you can easily visualize and analyze the data with MATLAB code.

The ThingSpeak MQTT broker is available now to all ThingSpeak users!

To help users get started using MQTT to send data to ThingSpeak, we have created some examples for common devices and applications that support MQTT.

If your device or application is not able to use MQTT directly, we have also enabled WebSockets. Using MQTT over WebSockets allows devices to use the MQTT protocol to send messages behind a firewall. We also support secure sockets to encrypt the messages that are being sent to ThingSpeak.

To learn how to use MQTT with ThingSpeak, please review our documentation. Let us know what you build with this new capability.

4 CommentsOldest to Newest

Venkatesh replied on : 1 of 4

Hi !

Is there any change to the rate at which the channels would accept data ? Does it still remain at 15 seconds ?

How does one send data at a rate faster than this to a ThingSpeak channel ?

Thanks,
Venkatesh.

Learn How to Use MQTT.fx with ThingSpeak – Thinking About Things replied on : 2 of 4

[…] just announced that they added MQTT as a way to send data to a ThingSpeak channel. This is great news since a lot […]

Eric Wetjen replied on : 3 of 4

For free accounts, the update rate remains at 15 seconds. However, it is possible to send data faster (up to once per second) with the paid options of ThingSpeak that were released in December, 2016. The paid options also provide the ability to send more data, and offer longer compute times on ThingSpeak. See the How to Buy page for details about the benefits provided by a paid license.

Add A Comment

What is 5 + 9?

Preview: hide