Telemetry: room-server request fix #2

The telemetry parser has been expanded and should now support significantly more metrics. It has been ported from the Python implementation of meshcore_py.
This commit is contained in:
HDDen
2026-05-19 23:16:37 +03:00
parent 425229fce8
commit 7a823654df
40 changed files with 3626 additions and 41 deletions
+6
View File
@@ -224,6 +224,12 @@ const int reqTypeGetTelemetry = 0x03;
const int reqTypeGetAccessList = 0x05;
const int reqTypeGetNeighbors = 0x06;
Uint8List buildTelemetryBinaryPayload() {
// Room servers/repeaters read byte 1 as an inverse telemetry permission mask.
// Zero means "request every telemetry field allowed for this contact".
return Uint8List.fromList([reqTypeGetTelemetry, 0x00, 0x00, 0x00, 0x00]);
}
// Repeater response codes
const int respServerLoginOk = 0;