Skip to content

Commit 0acaec6

Browse files
authored
Move ok_to_mqtt from flag to bitfield (#574)
1 parent 96b10c0 commit 0acaec6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

meshtastic/mesh.options

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
1919
# outside of this envelope
2020
*Data.payload max_size:237
21+
*Data.bitfield int_size:8
2122

2223
*NodeInfo.channel int_size:8
2324
*NodeInfo.hops_away int_size:8
@@ -72,4 +73,4 @@
7273

7374
*ChunkedPayload.chunk_count int_size:16
7475
*ChunkedPayload.chunk_index int_size:16
75-
*ChunkedPayload.payload_chunk max_size:228
76+
*ChunkedPayload.payload_chunk max_size:228

meshtastic/mesh.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,9 +890,9 @@ message Data {
890890
fixed32 emoji = 8;
891891

892892
/*
893-
* Defaults to false. Indicates the user approves the packet being uploaded to MQTT.
893+
* Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
894894
*/
895-
optional bool ok_to_mqtt = 9;
895+
optional uint32 bitfield = 9;
896896
}
897897

898898
/*

0 commit comments

Comments
 (0)