FwUpdate: binary firmware chunks over the mesh (REQ_TYPE_FW_OTA 0xF0)

This commit is contained in:
tth committed 2026-11-13 00:55:06 +01:00
1 parent 5f8788c4b4
commit 637b0d78b7
7 files changed
+126 -28

No files matched your search

+7
View File
@@ -46,6 +46,13 @@ public:
// for `erase`); `dfu` refuses anything else.
bool handleCommand(uint32_t sender_timestamp, const char *command, char *reply);
// Binary request from a logged-in client (REQ_TYPE_FW_OTA, firmware chunks).
// Returns the reply length, 0 = no reply. Admins only.
int handleRequest(bool admin, const uint8_t *req, int len, uint8_t *reply, int reply_max) {
if (!admin || len < 1 || req[0] != REQ_TYPE_FW_OTA) return 0;
return _fw.handleBinary(req, len, reply, reply_max);
}
private:
uint32_t radioActivity() const { return _radio.getPacketsRecv() + _radio.getPacketsRecvErrors(); }
void silenceLoad(uint8_t *backoff);