{"id":64802,"date":"2020-04-25T06:00:59","date_gmt":"2020-04-25T13:00:59","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=64802"},"modified":"2020-04-25T06:50:17","modified_gmt":"2020-04-25T13:50:17","slug":"at-smconf-set-mqtt-parameter","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/at-smconf-set-mqtt-parameter\/","title":{"rendered":"AT+SMCONF &#8211; Set MQTT Parameter"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/04\/at_smconf.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!daftmact.at\n\/\/This AT command is used to put Sierra Wireless modems in Factory Test Mode.\n\n\/\/Script: at+cmconf\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentaiton\n\n\/\/Get the support list for the command\nAT+SMCONF=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Get the current MQTT parameter values\nAT+SMCONF?\n\n\/\/Wait\nWAIT=1\n\n\/\/Configure the client id\nAT+SMCONF=\"CLIENTID\",\"id\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Configure the keeptime\nAT+SMCONF=\"KEEPTIME\",60\n\n\/\/Wait\nWAIT=1\n\n\/\/Configure the MQTT keeptime\nAT+SMCONF=\"URL\",\"test.mosquitto.org\",\"1883\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Session clean\nAT+SMCONF=\"CLEANSS\",1\n\n\/\/Wait\nWAIT=1\n\n\/\/Quality of service\nAT+SMCONF=\"QOS\",1\n\n\/\/Wait\nWAIT=1\n\n\/\/Publish topic name\nAT+SMCONF=\"TOPIC\",\"will topic\"\n\n\/\/Wait\nWAIT=1\n\n\/\/Public message\nAT+SMCONF=\"MESSAGE\",\"will message\"\n\n\/\/Wait\nWAIT=1\n\n\/Retain identification\nAT+SMCONF=\"RETAIN\",1\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=?\n\n+SMCONF: \"CLIENTID\",(0-128)\n\n+SMCONF: \"URL\",246,(0-65535)\n\n+SMCONF: \"KEEPTIME\",(60-180)\n\n+SMCONF: \"USERNAME\",256\n\n+SMCONF: \"PASSWORD\",128\n\n+SMCONF: \"CLEANSS\",(0,1)\n\n+SMCONF: \"QOS\",(0-2)\n\n+SMCONF: \"TOPIC\",128\n\n+SMCONF: \"MESSAGE\",1024\n\n+SMCONF: \"RETAIN\",(0,1)\n\nOK\nAT+SMCONF?\n\n+SMCONF: \n\nCLIENTID: \"id\"\n\nURL: \"test.mosquitto.org\",1883\n\nKEEPTIME: 60\n\nUSERNAME: \"\"\n\nPASSWORD: \"\"\n\nCLEANSS: 1\n\nQOS: 1\n\nTOPIC: \"will topic\"\n\nMESSAGE: \"will message\"\n\nRETAIN: 1\n\nOK\nAT+SMCONF=\"CLIENTID\",\"id\"\n\nOK\nAT+SMCONF=\"KEEPTIME\",60\n\nOK\nAT+SMCONF=\"URL\",\"test.mosquitto.org\",\"1883\"\n\nOK\nAT+SMCONF=\"CLEANSS\",1\n\nOK\nAT+SMCONF=\"QOS\",1\n\nOK\nAT+SMCONF=\"TOPIC\",\"will topic\"\n\nOK\nAT+SMCONF=\"MESSAGE\",\"will message\"\n\nOK\nAT+SMCONF=\"RETAIN\",1\n\nOK\nAT+SMCONF?\n\n+SMCONF: \n\nCLIENTID: \"id\"\n\nURL: \"test.mosquitto.org\",1883\n\nKEEPTIME: 60\n\nUSERNAME: \"\"\n\nPASSWORD: \"\"\n\nCLEANSS: 1\n\nQOS: 1\n\nTOPIC: \"will topic\"\n\nMESSAGE: \"will message\"\n\nRETAIN: 1\n\nOK\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/c20Qb4qCoLg\" 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!daftmact.at \/\/This AT command is used to put Sierra Wireless modems in Factory Test Mode. \/\/Script: at+cmconf \/\/The AT commands in this script are applicable for Simcom modules only &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/at-smconf-set-mqtt-parameter\/\">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-64802","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64802","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=64802"}],"version-history":[{"count":7,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64802\/revisions"}],"predecessor-version":[{"id":64817,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/64802\/revisions\/64817"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=64802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}