Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message when trying to OTA Update #45

Open
volodymyr-malishevskyi opened this issue Aug 30, 2023 · 3 comments
Open

Error message when trying to OTA Update #45

volodymyr-malishevskyi opened this issue Aug 30, 2023 · 3 comments

Comments

@volodymyr-malishevskyi
Copy link

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
Copy link
Owner

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

@Voha888
Copy link
Contributor

Voha888 commented Nov 14, 2023

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
Copy link
Contributor

Voha888 commented Nov 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants