OTA via WiFi File upload in AP-mode #263
Erhie
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I enhanced this software by adding the possibility for OTA update via WiFi with a binary file. This in softAP-mode .
This is important for me because my project is located in free landscape without Internet and the steering device is an android tablet.
As example I used code snippets from Jeija/esp32-softap-ota on GitHub.
I inserted
static esp_err_t update_post_handler_pre(httpd_req_t *req) {}
in app_httpd.cpp .
In this routine I started with
streamKill = true;
delay(50);
esp_camera_deinit();
periph_module_disable(PERIPH_I2C0_MODULE); // try to shut I2C down properly
periph_module_disable(PERIPH_I2C1_MODULE);
periph_module_reset(PERIPH_I2C0_MODULE);
periph_module_reset(PERIPH_I2C1_MODULE);
and than call update_post_handler(req) in
main.c of the project Jeija/esp32-softap-ota.
Beta Was this translation helpful? Give feedback.
All reactions