Infrastructure for clients to proxy MQTT traffic to node

pull/362/head
Ben Meadors 2023-06-29 07:17:21 -05:00
rodzic e4396fd499
commit 0d1614b4c8
3 zmienionych plików z 25 dodań i 3 usunięć

Wyświetl plik

@ -1,3 +1,5 @@
*ServiceEnvelope.packet type:FT_POINTER
*ServiceEnvelope.channel_id type:FT_POINTER
*ServiceEnvelope.gateway_id type:FT_POINTER
*ServiceEnvelope.gateway_id type:FT_POINTER
*MqttClientProxyMessage.topic type:FT_POINTER

Wyświetl plik

@ -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;
}

Wyświetl plik

@ -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;
}
}