diff --git a/meshtastic/mqtt.options b/meshtastic/mqtt.options index 261a74b..f37fb9a 100644 --- a/meshtastic/mqtt.options +++ b/meshtastic/mqtt.options @@ -1,3 +1,5 @@ *ServiceEnvelope.packet type:FT_POINTER *ServiceEnvelope.channel_id type:FT_POINTER -*ServiceEnvelope.gateway_id type:FT_POINTER \ No newline at end of file +*ServiceEnvelope.gateway_id type:FT_POINTER + +*MqttClientProxyMessage.topic type:FT_POINTER \ No newline at end of file diff --git a/meshtastic/mqtt.proto b/meshtastic/mqtt.proto index 0487f33..e8e8451 100644 --- a/meshtastic/mqtt.proto +++ b/meshtastic/mqtt.proto @@ -31,3 +31,17 @@ message ServiceEnvelope { */ 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 diff --git a/meshtastic/portnums.proto b/meshtastic/portnums.proto index 0fee327..970bd0a 100644 --- a/meshtastic/portnums.proto +++ b/meshtastic/portnums.proto @@ -78,11 +78,17 @@ enum PortNum { */ WAYPOINT_APP = 8; - /* Audio Payloads. + /* + * Audio Payloads. * Encapsulated codec2 packets. On 2.4 GHZ Bandwidths only for now */ AUDIO_APP = 9; + /* + * Payloads for clients with a network connection proxying MQTT pub/sub to the device + */ + MQTT_CLIENT_PROXY_APP = 10; + /* * Provides a 'ping' service that replies to any packet it receives. * Also serves as a small example module. @@ -162,4 +168,4 @@ enum PortNum { * Currently we limit port nums to no higher than this value */ MAX = 511; -} +} \ No newline at end of file