🖥️ Simpleterm

https: modem | https: ESP01

Connect to Serial Port:

ESP01 AT commands:

AP details: AT+CWJAP="SSID","123abc789d" | AT+CWJAP_DEF="BTWi-Fi","44e95azx30" | |

Get content of file from web server - pick server:

Get content of file from web server: needs +++ |

AT+CIPSNTPCFG=1,1,"uk.pool.ntp.org","ntp.plus.net","pool.ntp.org"

Act as Server: - connect to AP ESP_XXXXXX on chip.

Now server is running: connect to AP ESP_XXXXXX and use Putty to connect to port 333. needs +++

GPIO: for GPIO12 available on Wizzy R,G,B:15,12,13. TrafficLights:Gnd,R,Y,G, Leo:gnd,14,12,13, node:gnd,14,12,13
AT+SYSIOSETCFG=12,3,1 | AT+SYSGPIODIR=12,1 | AT+SYSGPIOWRITE=12,1 | AT+SYSGPIOWRITE=12,0

================================================
Connect to Access point , lost on next power up.
================================================
AT+CWMODE=3
AT+CWJAP="SSID","123abc789d"
AT+CWJAP="BTWi-Fi","44e95azx30"

Sets default if flashed:-
AT+CWJAP_DEF="SSID","123abc789d"
AT+CWJAP_DEF="BTWi-Fi","44e95azx30"


================================================
Configure IO control
AT+SYSIOSETCFG=pin,mode,pull-up
AT+SYSIOGETCFG=pin
AT+CIPSTART=,, ================================================ Example of getting a web page AT+CIPMODE=1 AT+CIPSTART="TCP","192.168.1.63",80 AT+CIPSTATUS AT+CIPSEND GET /doug.html HTTP/1.1 Host: 192.168.1.63 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.64 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Encoding: gzip, deflate Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,da;q=0.7 test For more information please see: ESP8266 AT Command Examples. +++ AT+CIPSTATUS From Wireshark:- AT+CIPSEND=562 GET /doug.html HTTP/1.1 Host: 192.168.1.63 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.64 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Encoding: gzip, deflate Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,da;q=0.7 Cookie: HOMEBASEID=f41b713d106dcd5258a7de301005341e HTTP/1.0 200 OK Date: Sat, 10 Jul 2021 13:47:51 GMT Server: Apache/2.2.3 (Red Hat) Last-Modified: Mon, 30 Apr 2012 06:58:50 GMT ETag: "3037-5-fc7ede80" Accept-Ranges: bytes Content-Length: 5 X-Axentra-Version: 10.2.0 Connection: close Content-Type: text/html; charset=UTF-8 doug ============================================ AT commands to turn LED on and off ============================================ pins 05,04,_,GND,14,12,13,15 for GPIO14 AT+SYSIOSETCFG=14,3,1 AT+SYSGPIODIR=14,1 AT+SYSGPIOWRITE=14,1 AT+SYSGPIOWRITE=14,0 AT+SYSIOSETCFG=05,3,1 AT+SYSIOSETCFG=04,3,1 AT+SYSIOSETCFG=14,3,1 AT+SYSIOSETCFG=12,3,1 AT+SYSIOSETCFG=13,3,1 AT+SYSIOSETCFG=15,3,1 AT+SYSGPIODIR=4,1 AT+SYSGPIODIR=5,1 AT+SYSGPIODIR=14,1 AT+SYSGPIODIR=12,1 AT+SYSGPIODIR=13,1 AT+SYSGPIODIR=15,1 AT+SYSGPIOWRITE=5,1 OK AT+SYSGPIOWRITE=4,1 AT+SYSGPIOWRITE=5,1 AT+SYSGPIOWRITE=14,1 AT+SYSGPIOWRITE=12,1 AT+SYSGPIOWRITE=13,1 AT+SYSGPIOWRITE=15,1 AT+SYSGPIOWRITE=4,0 AT+SYSGPIOWRITE=5,0 AT+SYSGPIOWRITE=14,0 AT+SYSGPIOWRITE=12,0 AT+SYSGPIOWRITE=13,0 AT+SYSGPIOWRITE=15,0 OK