OTA over LoRa for ESP32 and nRF52

This commit is contained in:
Valentin Kivachuk Burda
2026-06-25 11:47:36 +02:00
parent e8d3c53ba1
commit f149858dc4
67 changed files with 8369 additions and 36 deletions
+4 -2
View File
@@ -924,8 +924,10 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
memset(default_scope.key, 0, sizeof(default_scope.key));
}
// OTA mesh-integration (receive/begin/loop) is centralized in mesh::Mesh — no per-example wiring.
void MyMesh::begin(FILESYSTEM *fs) {
mesh::Mesh::begin();
mesh::Mesh::begin(); // also starts OTA (ota_ctx().begin) for all roles
_fs = fs;
// load persisted prefs
_cli.loadPrefs(_fs);
@@ -1267,7 +1269,7 @@ void MyMesh::loop() {
bridge.loop();
#endif
mesh::Mesh::loop();
mesh::Mesh::loop(); // also drives the OTA fetch loop (centralized in mesh::Mesh)
if (next_flood_advert && millisHasNowPassed(next_flood_advert)) {
mesh::Packet *pkt = createSelfAdvert();