Error message when trying to OTA Update
Hi,
i use esp01 and PlatformIO and i inserted part of OTA update code to my message handler function:
void messageHandler(FB_msg& msg) {
if (msg.OTA && msg.chatID == "my_secret_id") bot.update();
...
}
but when i send .bin file from ".pio\build\esp01\firmware.bin" to bot, i get the following:
Maybe i have wrong platformio.ini config:
[env:esp01]
platform = espressif8266
board = esp01
board_build.flash_mode = dout
board_build.f_cpu = 160000000L
upload_speed = 115200
framework = arduino
monitor_speed = 115200
lib_deps =
gyverlibs/FastBot@^2.26
How i can fix it?
Thank you in advance!
Hi, try to use Arduino IDE, i am not familiar with pio config
After sending the file, my ESP32 starts rebooting constantly. The firmware on my ESP32 remains old, and continues to send the message "OTA firmware..." every time it is rebooted
How i can fix it?
Thank you in advance!
I looked at the functions of this library. This library uses standard ESP32 Arduino OTA update methods. Accordingly, it should work perfectly under Platformio. I tried it on another computer and the update was successful. But not always. Perhaps there is a dependence on the stability of the network. When I have time, I want to see how the library monitors the download of the update bin file from the telegram servers. It seems to me that this may be a problem, because... in the .update method this is not clear