* OTA update for ESP32 targets

This commit is contained in:
Scott Powell 2025-03-22 23:51:44 +11:00
parent 30c6a0bc76
commit a4bb3782a4
22 changed files with 2105 additions and 15 deletions

View file

@ -35,7 +35,7 @@ void TechoBoard::begin() {
delay(10); // give sx1262 some time to power up
}
bool TechoBoard::startOTAUpdate() {
bool TechoBoard::startOTAUpdate(const char* id, char reply[]) {
// Config the peripheral connection with maximum bandwidth
// more SRAM required by SoftDevice
// Note: All config***() function must be called before begin()
@ -74,5 +74,6 @@ bool TechoBoard::startOTAUpdate() {
Bluefruit.Advertising.setFastTimeout(30); // number of seconds in fast mode
Bluefruit.Advertising.start(0); // 0 = Don't stop advertising after n seconds
strcpy(reply, "OK - started");
return true;
}