{"id":245,"date":"2016-02-20T16:26:15","date_gmt":"2016-02-20T16:26:15","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=245"},"modified":"2021-06-09T07:10:11","modified_gmt":"2021-06-09T06:10:11","slug":"esp8266-esp-01-part-2-useful-at-commands-and-their-outputs","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp8266-esp-01-part-2-useful-at-commands-and-their-outputs\/","title":{"rendered":"ESP8266 ESP-01 &#8211; Part 2 &#8211; Useful AT Commands And Their Outputs"},"content":{"rendered":"<p>Below are some AT commands for ESP8266 and their outputs<\/p>\n<pre class='wp-code-highlight prettyprint'><strong>AT<\/strong>\r\nOK<\/pre>\n<pre class='wp-code-highlight prettyprint'>AT+GMR\r\n<em>This will display firmware version and some other details <\/em><\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+CIPMUX=1<\/strong> \r\nOK<\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+CWMODE=3<\/strong> \r\nOK<\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+CWJAP=\"WIRELESS-ROUTER\",\"password\"<\/strong>\r\n<em>[WIFI DISCONNECTED] (if it is already connected)<\/em>\r\nWIFI CONNECTED\r\nWIFI GOT IP\r\nOK<\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+CIPSTART=4,\"TCP\",\"x.x.x.x\",80<\/strong>\r\n4,CONNECT\r\nOK<\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+CIPSEND=4,205<\/strong>\r\nOK\r\n&gt; <em>[at this point HTTP request will be made, read below for details]<\/em>\r\nRecv 205 bytes\r\nSEND OK\r\n+IPD,4,203:<span style=\"color: #0000ff;\">HTTP\/1.1 200 OK\r\nDate: Sun, 14 Feb 2016 20:33:16 GMT\r\nServer: Apache\/2.4.7 (Ubuntu)\r\nX-Powered-By: PHP\/5.5.9-1ubuntu4.14\r\nContent-Length: 15\r\nConnection: close\r\nContent-Type: text\/html\r\n\r\nled_1=0|led_2=1<\/span>4,CLOSED\r\n\r\n<em>[The blue colored text above is what the server has sent in reply to the HTTP request]\r\n<\/em><\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+UART_CUR=2400,8,1,0,0<\/strong>\r\nOK\r\n\r\n<em>[This command work with AT ver 6.0 and SDK ver 1.5.2. The changes will be temporary and will be restored to default on resetting. Use ]<\/em><\/pre>\n<pre class='wp-code-highlight prettyprint'><strong>AT+UART_DEF=2400,8,1,0,0\r\n\r\n<\/strong><em>[This will make the change permanent. In case things gets wrong then reflash]\r\n\r\nIf AT+UART doesn't work then use \r\n<\/em><strong>AT+IPR<\/strong><em>\r\n<\/em><\/pre>\n<p>&nbsp;<\/p>\n<p>An extensive guide can be found here<br \/>\n<a href=\"https:\/\/github.com\/espressif\/ESP8266_AT\/wiki\/CWSAP\">https:\/\/github.com\/espressif\/ESP8266_AT\/wiki\/CWSAP<\/a><\/p>\n<p><a href=\"https:\/\/docs.espressif.com\/projects\/esp-at\/en\/latest\/AT_Command_Set\/Basic_AT_Commands.html\">https:\/\/docs.espressif.com\/projects\/esp-at\/en\/latest\/AT_Command_Set\/Basic_AT_Commands.html<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below are some AT commands for ESP8266 and their outputs AT OK AT+GMR This will display firmware version and some other details AT+CIPMUX=1 OK AT+CWMODE=3 OK AT+CWJAP=&#8221;WIRELESS-ROUTER&#8221;,&#8221;password&#8221; [WIFI DISCONNECTED] (if it is already connected) WIFI CONNECTED WIFI GOT IP OK AT+CIPSTART=4,&#8221;TCP&#8221;,&#8221;x.x.x.x&#8221;,80 4,CONNECT OK AT+CIPSEND=4,205 OK &gt; [at this point HTTP request will be made, read&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp8266-esp-01-part-2-useful-at-commands-and-their-outputs\/\">Continue reading <span class=\"screen-reader-text\">ESP8266 ESP-01 &#8211; Part 2 &#8211; Useful AT Commands And Their Outputs<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[17,20,15,14],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-ai-cloud-inside","tag-esp-8266","tag-esp-01","tag-esp8266","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":7,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":848,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/245\/revisions\/848"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}