Skip to content

Commit

Permalink
Move ok_to_mqtt from flag to bitfield (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-bennett authored Sep 6, 2024
1 parent 96b10c0 commit 0acaec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
# outside of this envelope
*Data.payload max_size:237
*Data.bitfield int_size:8

*NodeInfo.channel int_size:8
*NodeInfo.hops_away int_size:8
Expand Down Expand Up @@ -72,4 +73,4 @@

*ChunkedPayload.chunk_count int_size:16
*ChunkedPayload.chunk_index int_size:16
*ChunkedPayload.payload_chunk max_size:228
*ChunkedPayload.payload_chunk max_size:228
4 changes: 2 additions & 2 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,9 @@ message Data {
fixed32 emoji = 8;

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

/*
Expand Down

0 comments on commit 0acaec6

Please sign in to comment.