MQTT – Internet of Things https://blogs.mathworks.com/iot Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. Wed, 04 Aug 2021 15:23:24 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 ThingSpeak MQTT Update: Access Control and IoT Device Management https://blogs.mathworks.com/iot/2021/07/21/thingspeak-mqtt-update-access-control-and-iot-device-management/?s_tid=feedtopost https://blogs.mathworks.com/iot/2021/07/21/thingspeak-mqtt-update-access-control-and-iot-device-management/#comments Wed, 21 Jul 2021 21:36:11 +0000 https://blogs.mathworks.com/iot/?p=2819

ThingSpeak has released an update to the MQTT service that improves access control and device management for IoT projects. This new interface is available to all ThingSpeak users. Learn more in the... read more >>

]]>
ThingSpeak has released an update to the MQTT service that improves access control and device management for IoT projects. This new interface is available to all ThingSpeak users. Learn more in the ThingSpeak Doc.

If you have used ThingSpeak MQTT in the past, I wanted to mention one big change to how you access the service. The new MQTT service is available at the hostname: mqtt3.thingspeak.com.

If you decide that MQTT is right for your IoT project, you can start by adding a new device to your ThingSpeak account. This will set up the MQTT credentials needed for the device to connect to ThingSpeak. MQTT works well for low-power devices and low-latency applications.

ThingSpeak’s new MQTT support includes:

  • Improved access control
  • More concurrent subscriptions
  • Device management
  • Streamlined topic patterns to make coding easier

We’ve updated our documentation to include several new MQTT examples with code for the new interface. We have added a new example to secure the transmission of data between devices and ThingSpeak.

]]>
https://blogs.mathworks.com/iot/2021/07/21/thingspeak-mqtt-update-access-control-and-iot-device-management/feed/ 4
Subscribe to ThingSpeak IoT Data using MQTT https://blogs.mathworks.com/iot/2017/11/10/subscribe-to-thingspeak-iot-data-using-mqtt/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/11/10/subscribe-to-thingspeak-iot-data-using-mqtt/#comments Fri, 10 Nov 2017 22:33:24 +0000 https://blogs.mathworks.com/iot/?p=2204

The ThingSpeak IoT service now supports MQTT subscriptions to receive instant updates when a ThingSpeak channel gets updated. MQTT is a powerful standard for IoT systems. ThingSpeak enables clients... read more >>

]]>
The ThingSpeak IoT service now supports MQTT subscriptions to receive instant updates when a ThingSpeak channel gets updated. MQTT is a powerful standard for IoT systems. ThingSpeak enables clients to update and receive updates from channel feeds via the ThingSpeak MQTT broker. MQTT is a publish/subscribe communication protocol that uses TCP/IP sockets or WebSockets. MQTT over WebSockets can be secured with SSL. A client device connects to the MQTT broker and can publish to a channel or subscribe to updates from that channel.

MQTT in MATLAB

We also published a new File Exchange submission that allows you to publish and subscribe using MQTT within MATLAB. Download and install MQTT in MATLAB to be able to connect to ThingSpeak’s MQTT server or connect to other standard MQTT brokers such as AWS IoT. Using this Add-On in MATLAB allows you to define custom functions to evaluate on receiving messages streaming over subscribed topics.

ThingSpeak MQTT Examples

View our ThingSpeak MQTT documentation to learn more about MQTT support on ThingSpeak, and find examples for Arduino, Particle, and Raspberry Pi.

]]>
https://blogs.mathworks.com/iot/2017/11/10/subscribe-to-thingspeak-iot-data-using-mqtt/feed/ 1
Use MQTT to Send IoT Data to ThingSpeak https://blogs.mathworks.com/iot/2017/01/20/use-mqtt-to-send-iot-data-to-thingspeak/?s_tid=feedtopost https://blogs.mathworks.com/iot/2017/01/20/use-mqtt-to-send-iot-data-to-thingspeak/#comments Fri, 20 Jan 2017 23:28:10 +0000 https://blogs.mathworks.com/iot/?p=1998

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... read more >>

]]>
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.

]]>
https://blogs.mathworks.com/iot/2017/01/20/use-mqtt-to-send-iot-data-to-thingspeak/feed/ 5