ichiro
March 29, 2024, 12:55am
1
Integrate FreeRTOS OTA into your own project on ESP32 using PlatformIO.
However, various dependencies and include files are unreferenced. The description in platformio.ini is as follows
platform = espressif32@3.0.0
board = esp32dev
framework = arduino
I have failed to include OTA in this project.
Please help me if anyone can figure it out.
I believe the following post is close to my problem. framework is different.
Hey there,
I’m trying to implement OTA functionality within my project but can’t seem to find code that I can compile.
I’ve asked a friend of mine how he did it and he said he used the OTA examples from the ESP-IDF repository found here: esp-idf/examples/system/ota at master · espressif/esp-idf · GitHub
When I try to use that code however PlatformIO can’t seem to find a lot of definitions or other functions.
I’ve tried manually putting the right files into the project folder and including th…
Sounds like ArduinoOTA
is what you’re looking for:
#include <WiFi.h>
#include <ESPmDNS.h>
#include <NetworkUdp.h>
#include <ArduinoOTA.h>
const char* ssid = "..........";
const char* password = "..........";
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
// Port defaults to 3232
This file has been truncated. show original
Wow, 3.0.0 was released 3 years ago an is “outdated”
Current version is 6.5.0 (Arduino core 2.0.14)
ichiro
March 29, 2024, 7:19am
3
I am very glad for your quick reply. Thank you.
I have tried ArduinoOTA. It has been successful.
But what I want to run is OTA using FreeRTOS.
I want to execute OTA from AWS management console.
For that I think I need FreeRTOS OTA, not ArduinoOTA.
Well than platform = espresif32
is the wrong platform (only supports Arduino
and ESP-IDF
framework)
and framwork = arduino
is the wrong framework for you.
Looks like you want to use the AWS IoT Framework? Getting started with the Espressif ESP32-DevKitC and the ESP-WROVER-KIT - FreeRTOS
I don’t know if this is supported / available on platformio.
Maybe someone else can help you.
ichiro
March 29, 2024, 8:13am
5
Thanks for your reply.
Yes …
I would like to use AWS IoT Framework.
The github you referred us to was previously referenced.
It is difficult to solve again.