otadrive / esp32-otadrive-examples Goto Github PK
View Code? Open in Web Editor NEWExamples of ESP32 OTA update firmware HTTPS SSL Configurations
Home Page: https://www.otadrive.com
Examples of ESP32 OTA update firmware HTTPS SSL Configurations
Home Page: https://www.otadrive.com
Does it also work for ESP32 system developed in RTOS? Is there any example of use? To understand how to hande it within a task
Hi guy
in 07-SSL example for arduino ide, do you have a check for version firmware?
I'm getting the following error when using the latest esp32 board v3.0.1 and OTAdrive_ESP 1.1.30.
Any ideas what is wrong? I just started having these issues, possibly when I updated libs.
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp: In member function 'updateInfo otadrive_ota::updateFirmware(Client&, bool)':
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp:252:23: error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]
252 | esp_task_wdt_init(45, true);
| ^~
| |
| int
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp:252:22: error: too many arguments to function 'esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t*)'
252 | esp_task_wdt_init(45, true);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp:6:
C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083\esp32s3/include/esp_system/include/esp_task_wdt.h:47:11: note: declared here
47 | esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t config);
| ^~~~~~~~~~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp: In member function 'updateInfo otadrive_ota::updateFirmware(bool)':
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp:305:23: error: invalid conversion from 'int' to 'const esp_task_wdt_config_t' [-fpermissive]
305 | esp_task_wdt_init(45, true);
| ^~
| |
| int
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\otadrive_esp.cpp:305:22: error: too many arguments to function 'esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t*)'
305 | esp_task_wdt_init(45, true);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
C:\Users\user\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-442a798083\esp32s3/include/esp_system/include/esp_task_wdt.h:47:11: note: declared here
47 | esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t *config);
| ^~~~~~~~~~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\FlashUpdater.cpp: In member function 'bool OTAdrive_ns::FlashUpdater::runUpdate(OTAdrive_ns::TinyHTTP, int)':
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\FlashUpdater.cpp:224:18: error: 'SPI_FLASH_SEC_SIZE' was not declared in this scope; did you mean 'SPI_FLASH_BLOCK_SIZE'?
224 | #define BUF_SIZE SPI_FLASH_SEC_SIZE * 1
| ^~~~~~~~~~~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\FlashUpdater.cpp:271:21: note: in expansion of macro 'BUF_SIZE'
271 | uint8_t tmp_buf[BUF_SIZE];
| ^~~~~~~~
c:\Users\user\Documents\Arduino\libraries\OTAdrive_ESP\src\FlashUpdater.cpp:276:46: error: 'tmp_buf' was not declared in this scope
276 | for (uint32_t i = 0; i < http.total_len; tmp_buf)
| ^~~~~~~
Multiple libraries were found for "WiFiClient.h"
Used: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.1\libraries\WiFi
Not used: C:\Users\user\Documents\Arduino\libraries\WiFi101
Not used: C:\Users\user\Documents\Arduino\libraries\WiFiNINA
exit status 1
Compilation error: exit status 1
Hi,
I using PlatformIo with Arduino Framework. When I add the library in to "Libraries" manager more of libraries that I have included in my project they stop working.
The particular error that can I see is that in the Serial monitor I have:
Processing upload-usb (platform: espressif32; framework: arduino; board: esp32-s3-devkitc-1)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
PLATFORM: Espressif 32 (6.2.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
#include <RTClib.h>
^~~~~~~~~~
compilation terminated.
*** [.pio\build\upload-usb\src\main.cpp.o] Error 1
==================================================================================================================== [FAILED] Took 13.89 seconds ====================================================================================================================
Environment Status Duration
upload-usb FAILED 00:00:13.891
=============================================================================================================== 1 failed, 0 succeeded in 00:00:13.891 ===============================================================================================================
In this case is RTClib.h but if I commentthis library, it happens with the next one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.