GyverLibs / FastBot

Многофункциональная быстрая библиотека для Телеграм бота на esp8266/esp32
MIT License
183 stars 32 forks source link

Error message when trying to OTA Update #45

Open volodymyr-malishevskyi opened 11 months ago

volodymyr-malishevskyi commented 11 months ago

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: image

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!

GyverLibs commented 11 months ago

Hi, try to use Arduino IDE, i am not familiar with pio config

Voha888 commented 9 months ago

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

Voha888 commented 9 months ago

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