diff --git a/meshtastic/mesh.options b/meshtastic/mesh.options index 35e4dc6..c384185 100644 --- a/meshtastic/mesh.options +++ b/meshtastic/mesh.options @@ -53,4 +53,7 @@ *NeighborInfo.neighbors max_count:10 -*DeviceMetadata.firmware_version max_size:18 \ No newline at end of file +*DeviceMetadata.firmware_version max_size:18 + +*MqttClientProxyMessage.topic type:FT_POINTER +*MqttClientProxyMessage.data max_size:500 \ No newline at end of file diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 8c50965..eb55795 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -674,6 +674,20 @@ message Waypoint { fixed32 icon = 8; } +/* + * This message will be proxied over the PhoneAPI for client to deliver to the MQTT server + */ + message MqttClientProxyMessage { + /* + * The MQTT topic this message will be sent /received on + */ + string topic = 1; + /* + * The actual service envelope payload for mqtt delivery + */ + bytes data = 2; +} + /* * A packet envelope sent/received over the mesh * only payload_variant is sent in the payload portion of the LORA packet. @@ -1320,6 +1334,11 @@ message FromRadio { * Device metadata message */ DeviceMetadata metadata = 13; + + /* + * MQTT Client Proxy Message + */ + MqttClientProxyMessage mqttClientProxyMessage = 14; } } diff --git a/meshtastic/mqtt.options b/meshtastic/mqtt.options index f37fb9a..261a74b 100644 --- a/meshtastic/mqtt.options +++ b/meshtastic/mqtt.options @@ -1,5 +1,3 @@ *ServiceEnvelope.packet type:FT_POINTER *ServiceEnvelope.channel_id type:FT_POINTER -*ServiceEnvelope.gateway_id type:FT_POINTER - -*MqttClientProxyMessage.topic type:FT_POINTER \ No newline at end of file +*ServiceEnvelope.gateway_id type:FT_POINTER \ No newline at end of file diff --git a/meshtastic/mqtt.proto b/meshtastic/mqtt.proto index e8e8451..7631435 100644 --- a/meshtastic/mqtt.proto +++ b/meshtastic/mqtt.proto @@ -30,18 +30,4 @@ message ServiceEnvelope { * the globally trusted nodenum */ string gateway_id = 3; -} - -/* - * This message will be proxied over the PhoneAPI for client to deliver to the MQTT server - */ -message MqttClientProxyMessage { - /* - * The MQTT topic this message will be sent /received on - */ - string topic = 1; - /* - * The actual payload for mqtt delivery - */ - ServiceEnvelope envelope = 2; } \ No newline at end of file