
本文共 3283 字,大约阅读时间需要 10 分钟。
ESP32 OTA������������������
������
ESP32������������������������Wi-Fi���������������������������������������������������������������������������������������������ESP-IDF���������������������������������OTA���������
app_update
������������������������������esp_https_ota
������������������������ API���������HTTPS���������������������
������������OTA���������������������������������
- ESP32���������������ESP32-WROVER Kit���ESP32-DevKit C���
- Wi-Fi���������������������������������������������������������������������������������������������
������������
���������������������������������idf.py menuconfig
������
���������������
- ������������������������������������Wi-Fi������������������
- Wi-Fi���������������ESSID������������
- ���������������������������������������������IP101������
������������������
- ���
Firmware Upgrade URL
���������HTTPS���������������������������https://<host-ip>:<host-port>/<firmware-image-filename>
���������https://192.168.2.106:8070/hello-world.bin
������
���������������
������idf.py -p PORT flash monitor
���
- ���������������������������������������������������
ota_data
��������������������������������������������������� - ���������������������������������������[2C [warnings]..."������������������
HTTPS���������������
������HTTPS������������
cd build
������openssl req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365 -nodes
winpty openssl s_server -WWW -key ca_key.pem -cert ca_cert.pem -port 8070
���������Windows���������������winpty
������������������������
Flash���������ESP32
���������������������������server_certs
������������������������ESP32���
cp ca_cert.pem /path/to/ota/example/server_certs/
OTA������������
������OTA������������
ota_data
���������������������������������������������������������ota_data
���������������������������������������������������������������
���������������������������������������������ESP-IDF������������������������
- ������
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE
��������������������������������������������������������� - ������ Terraria������������������������������������������GPIO������������������������������������������������������������
������������������������
native_ota_example
���������������������������������
- ������
PROJECT_VER
���$PROJECT_PATH/version.txt
���Git��������� - y��zde.mac���������������������������������������������
������������
- ���������ota_begin error err=0x104������
- ������������������������������������������������������������������4MB������
- ���������������������������������CSV���������
components/partition_table
���������������������������������������������
- ���������������������������������
idf.py erase_flash
���������������������
HTTPS���������������
������HTTPS������������������������������������������������
FILE:hello-world.binACCEPT
������������
- ������������������������������������HTTPS���������������8070������
- ���������IP���������
CN
��������������������� - Git���������������������������������������
PROJECT_VER
������1������
������������
- ������������������������
- ������������������xfxuezhang
发表评论
最新留言
关于作者
