{"id":2205,"date":"2012-10-25T17:06:41","date_gmt":"2012-10-26T00:06:41","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=2205"},"modified":"2012-10-25T17:10:28","modified_gmt":"2012-10-26T00:10:28","slug":"at-command-to-control-gpio","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/at-command-to-control-gpio\/","title":{"rendered":"AT Command to control GPIO"},"content":{"rendered":"<p>M2M application developers can use the General Purpose Input Output (GPIO) pins for various types of controls. Module vendors generally provide proprietary AT commands to read\/write the GPIOs.<\/p>\n<p>SIMCOM provides AT commands to control the GPIO,<br \/>\nat+sgpio=?<br \/>\n+SGPIO: (0-1),(1-12),(0-2),(0-1)<br \/>\nOK<\/p>\n<p>Above response indicates that the AT command support set\/read operation (0-1), it can set any of the 12 GPIOs (1-12), it can be configured to input\/output\/keypad (0-2) and the actual value can be set to 0 or 1 (0-1)<\/p>\n<p>Set GPIO 1 as input,<br \/>\nat+sgpio=0,1,0<br \/>\nOK<\/p>\n<p>Read GPIO 1<br \/>\nat+sgpio=1,1<br \/>\n+SGPIO: 0<br \/>\nOK<\/p>\n","protected":false},"excerpt":{"rendered":"<p>M2M application developers can use the General Purpose Input Output (GPIO) pins for various types of controls. Module vendors generally provide proprietary AT commands to read\/write the GPIOs. SIMCOM provides AT commands to control the GPIO, at+sgpio=? +SGPIO: (0-1),(1-12),(0-2),(0-1) OK &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/at-command-to-control-gpio\/\">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-2205","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2205","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=2205"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2205\/revisions"}],"predecessor-version":[{"id":2208,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/2205\/revisions\/2208"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=2205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}