{"id":2819,"date":"2021-07-21T17:36:11","date_gmt":"2021-07-21T21:36:11","guid":{"rendered":"https:\/\/blogs.mathworks.com\/iot\/?p=2819"},"modified":"2021-08-04T11:23:24","modified_gmt":"2021-08-04T15:23:24","slug":"thingspeak-mqtt-update-access-control-and-iot-device-management","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/iot\/2021\/07\/21\/thingspeak-mqtt-update-access-control-and-iot-device-management\/","title":{"rendered":"ThingSpeak MQTT Update: Access Control and IoT Device Management"},"content":{"rendered":"<p>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 <a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/mqtt-api.html\">ThingSpeak Doc<\/a>.<\/p>\n<p><a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/mqtt-api.html\"><img decoding=\"async\" loading=\"lazy\" width=\"552\" height=\"390\" class=\"aligncenter size-full wp-image-2822\" src=\"https:\/\/blogs.mathworks.com\/iot\/files\/2021\/07\/mqtt_subscribe.png\" alt=\"\" \/><\/a><\/p>\n<p>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: <strong>mqtt3.thingspeak.com<\/strong>.<\/p>\n<p>If you <a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/choose-between-rest-and-mqtt.html\">decide<\/a> 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.<\/p>\n<p>ThingSpeak&#8217;s new MQTT support includes:<\/p>\n<ul>\n<li>Improved access control<\/li>\n<li>More concurrent subscriptions<\/li>\n<li>Device management<\/li>\n<li>Streamlined topic patterns to make coding easier<\/li>\n<\/ul>\n<p>We\u2019ve updated our <a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/mqtt-api.html\">documentation<\/a> 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.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/use-arduino-client-to-publish-to-a-channel.html\">Publish and Subscribe to a ThingSpeak Channel Using Secure MQTT<\/a><\/li>\n<li><a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/use-desktop-mqtt-client-to-publish-to-a-channel.html\">Publish and Subscribe to a Channel Using Desktop MQTT Client<\/a><\/li>\n<li><a href=\"https:\/\/www.mathworks.com\/help\/thingspeak\/use-photon-client-to-publish-to-a-channel.html\">Publish to a ThingSpeak Channel Using a Particle Device Client via MQTT<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/iot\/files\/2021\/07\/mqtt_subscribe.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>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&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/iot\/2021\/07\/21\/thingspeak-mqtt-update-access-control-and-iot-device-management\/\">read more >><\/a><\/p>\n","protected":false},"author":148,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,4,295],"tags":[30,60,238,98],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2819"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/users\/148"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/comments?post=2819"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2819\/revisions"}],"predecessor-version":[{"id":2832,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2819\/revisions\/2832"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/media?parent=2819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/categories?post=2819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/tags?post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}