Skip to content

Commit

Permalink
Merge pull request #573 from meshtastic/doNotMQTTMeBro
Browse files Browse the repository at this point in the history
Adds OKToMqtt bool to data
  • Loading branch information
caveman99 authored Sep 6, 2024
2 parents 5f7c91a + fce5ab5 commit 96b10c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion meshtastic/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,11 @@ message Config {
* If true, the device will not process any packets received via LoRa that passed via MQTT anywhere on the path towards it.
*/
bool ignore_mqtt = 104;

/*
* Sets the ok_to_mqtt bit on outgoing packets
*/
bool config_ok_to_mqtt = 105;
}

message BluetoothConfig {
Expand Down Expand Up @@ -1070,4 +1075,4 @@ message Config {
SecurityConfig security = 8;
SessionkeyConfig sessionkey = 9;
}
}
}
7 changes: 6 additions & 1 deletion meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,11 @@ message Data {
* a message a heart or poop emoji.
*/
fixed32 emoji = 8;

/*
* Defaults to false. Indicates the user approves the packet being uploaded to MQTT.
*/
optional bool ok_to_mqtt = 9;
}

/*
Expand Down Expand Up @@ -1889,4 +1894,4 @@ message ChunkedPayloadResponse {
*/
resend_chunks resend_chunks = 4;
}
}
}

0 comments on commit 96b10c0

Please sign in to comment.