{"id":145033,"date":"2020-06-13T16:01:31","date_gmt":"2020-06-13T23:01:31","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=145033"},"modified":"2020-06-13T16:51:07","modified_gmt":"2020-06-13T23:51:07","slug":"mqtt-subscribe-using-simcom-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/mqtt-subscribe-using-simcom-modules\/","title":{"rendered":"MQTT Subscribe and Unsubscribe using Simcom modules"},"content":{"rendered":"<p>Simcom SIM7XXX modules has support for the MQTT feature using the AT Commands.<\/p>\n<p>To subscribe to a topic with Simcom modules,<\/p>\n<ul>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/mqtt-connect-to-eclipse-public-mqtt-server-using-simcom-modules\/\">Connect to the MQTT browser<\/a><\/li>\n<li>Subscribe to a topic using the AT+SMSUB command.<\/li>\n<li>Unsubscribe from a topic using the AT+UNSUB command.<\/li>\n<\/ul>\n<h3><strong>Related Topics<\/strong><\/h3>\n<ul>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/how-mqtt-works\/\">How MQTT works?<\/a><\/li>\n<li>MQTT \u2013 Connect to Broker\n<ul>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/mqtt-connect-to-eclipse-public-mqtt-server-using-simcom-modules\/\">Connect to Eclipse public MQTT Server<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/mqtt-publish-using-simcom-modules\/\">MQTT Publish<\/a><\/li>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/mqtt-subscribe-using-simcom-modules\/\">MQTT Subscribe<\/a><\/li>\n<\/ul>\n<p>Try <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester<\/a> tool to test MQTT features with the Simcom Modules. In below example,<\/p>\n<ul>\n<li>With one instance of the AT Command Tester tool, a MQTT connection is established to &#8216;test.mosquitto.org&#8217; server using the Simcom SIM7080G module.<\/li>\n<li>With another instance of the AT Command Tester tool, a MQTT connection is established to &#8216;test.mosquitto.org&#8217; using the PC client.<\/li>\n<li>The MQTT PC client publishes to the topic &#8216;SensorReadings&#8217;.<\/li>\n<li>The Simcom MQTT client is subscribed to the topic &#8216;SensorReadings&#8217; and so receives the data published by the PC MQTT client.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/06\/simcom_mqtt_subscribe.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23473\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/06\/simcom_mqtt_subscribe.png\" alt=\"\" width=\"1728\" height=\"1045\" \/><\/a><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/fIlBD7B5-r0\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Simcom SIM7XXX modules has support for the MQTT feature using the AT Commands. To subscribe to a topic with Simcom modules, Connect to the MQTT browser Subscribe to a topic using the AT+SMSUB command. Unsubscribe from a topic using the &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/mqtt-subscribe-using-simcom-modules\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"software_howto.php","meta":{"footnotes":""},"class_list":["post-145033","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=145033"}],"version-history":[{"count":6,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145033\/revisions"}],"predecessor-version":[{"id":145048,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/145033\/revisions\/145048"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=145033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}