Config and payload variant

pull/363/head
Ben Meadors 2023-07-01 08:53:13 -05:00
rodzic b29933a4a0
commit 74f3c56c9b
3 zmienionych plików z 25 dodań i 3 usunięć

Wyświetl plik

@ -55,5 +55,6 @@
*DeviceMetadata.firmware_version max_size:18
*MqttClientProxyMessage.topic type:FT_POINTER
*MqttClientProxyMessage.data max_size:500
*MqttClientProxyMessage.topic max_size:60
*MqttClientProxyMessage.data max_size:435
*MqttClientProxyMessage.text max_size:435

Wyświetl plik

@ -682,10 +682,26 @@ message Waypoint {
* The MQTT topic this message will be sent /received on
*/
string topic = 1;
/*
* The actual service envelope payload for mqtt delivery
*/
bytes data = 2;
oneof payload_variant {
/*
* Bytes
*/
bytes data = 2;
/*
* Text
*/
string text = 3;
}
/*
* Whether the message should be retained (or not)
*/
bool retained = 4;
}
/*

Wyświetl plik

@ -65,6 +65,11 @@ message ModuleConfig {
* This is useful if you want to use a single MQTT server for multiple meshtastic networks and separate them via ACLs
*/
string root = 8;
/*
* If true, we can use the connected phone / client to proxy messages to MQTT instead of a direct connection
*/
bool proxy_to_client_enabled = 9;
}
/*