-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
А какие настройки нужны для OTA? В первой версии библиотеки оно работало, а во второй нет.
void handle_file(fb::Update& u) {
String file_name = u.message().document().name();
String chat_id = u.message().chat().id();
Serial.printf("Downloading file: %s\n", file_name.c_str());
if (file_name.endsWith(".bin")) {
bot.sendMessage(fb::Message("OTA update started", chat_id));
fb::Fetcher fetch = bot.downloadFile(u.message().document().id());
bool ok = fetch.updateFlash();
bot.sendMessage(fb::Message(ok ? "OTA done" : "OTA error", chat_id));
}
}
использую прям из примера код практически, все равно не хочет. OTA error и все.
woodlist and vvzvlad
Metadata
Metadata
Assignees
Labels
No labels