{"id":64810,"date":"2020-04-25T06:33:21","date_gmt":"2020-04-25T13:33:21","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=64810"},"modified":"2020-04-25T06:49:46","modified_gmt":"2020-04-25T13:49:46","slug":"atsmconn-set-up-a-mqtt-connection","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atsmconn-set-up-a-mqtt-connection\/","title":{"rendered":"AT+SMCONN &#8211; Set up a MQTT connection"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/04\/at_smconn.png\" alt=\"\" class=\"wp-image-32155\"\/><\/figure>\n\n\n<p>Try the below script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a>\n<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: at+smconn\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentation\n\n\/\/Set up the MQTT URL\nAT+SMCONF=\"URL\",117.131.85.139,6000\n\n\/\/Wait\nWAIT=1\n\n\/\/Set up the MQTT time to connect server\nAT+SMCONF=\"KEEPTIME\",60\n\n\/\/Connect to the MQTT server\nAT+SMCONN\n\n<\/pre>\n<p>Output of the above script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a><\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+SMCONF=\"URL\",117.131.85.139,6000\n\nOK\nAT+SMCONF=\"KEEPTIME\",60\n\nOK\nAT+SMCONN\n\nOK\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/k-IHN-hdohw\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Try the below script in the AT Command Tester tool \/\/Script: at+smconn \/\/The AT commands in this script are applicable for Simcom modules only \/\/Check SIMCOM Module AT Command documentation \/\/Set up the MQTT URL AT+SMCONF=&#8221;URL&#8221;,117.131.85.139,6000 \/\/Wait WAIT=1 \/\/Set up &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atsmconn-set-up-a-mqtt-connection\/\">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":"atcommands.php","meta":{"footnotes":""},"class_list":["post-64810","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64810","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=64810"}],"version-history":[{"count":3,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64810\/revisions"}],"predecessor-version":[{"id":64816,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64810\/revisions\/64816"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=64810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}