ESP32 #21: ESP32-AT - Playing with ESP32 AT Commands

Опубликовано: 10 Октябрь 2024
на канале: pcbreflux
27,219
156

Playing with #ESP32 AT Commands.

Setup
https://pcbreflux.blogspot.de/2017/02...

ESP32-AT
https://github.com/espressif/esp32-at

Issues
https://github.com/espressif/esp32-at...

Manual
http://espressif.com/sites/default/fi...

esp-idf
https://github.com/espressif/esp-idf
commit 61c7bd3c3a63e6372f26e291aa9531ef9f2f3b64
Date: Thu Feb 16 15:13:05 2017 +0800

(sample use
mkdir esp
cd ~/esp
git clone https://github.com/espressif/esp-idf.git esp-idf
cd ~/esp/esp-idf
git checkout 61c7bd3c3a63e6372f26e291aa9531ef9f2f3b64
export $IDF_PATH=~/esp/esp-idf
...
[install yout xtensa compiler]
)
(see https://github.com/espressif/esp-idf/...)
xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 5.2.0


AT Commands
AT
AT+GMR
AT+CWMODE=1
AT+CIPSTATUS
AT+CWJAP="ssid","password"
AT+CIPSTATUS
AT+CIPSTART="TCP","www.google.com",80
AT+CIPSEND=72

GET /search?q=esp32 HTTP/1.1
Host: www.google.de
Connection: close


AT+CIPSTART="TCP","www.heise.de",80
AT+CIPSEND=68

GET /index.html HTTP/1.1
Host: www.heise.de
Connection: close


AT+CIPSTART="SSL","www.heise.de",443
AT+CIPSEND=88

GET https://www.heise.de/index.html HTTP/1.1
Host: www.heise.de
Connection: close


AT+CIPSTART="SSL","www.esp32.com",443
AT+CIPSEND=89

GET https://www.esp32.com/index.php HTTP/1.1
Host: www.esp32.com
Connection: close