Move proxy message and just convert to bytes instead

pull/363/head
Ben Meadors 2023-06-30 07:51:51 -05:00
rodzic 0d1614b4c8
commit b29933a4a0
4 zmienionych plików z 24 dodań i 18 usunięć

Wyświetl plik

@ -53,4 +53,7 @@
*NeighborInfo.neighbors max_count:10
*DeviceMetadata.firmware_version max_size:18
*DeviceMetadata.firmware_version max_size:18
*MqttClientProxyMessage.topic type:FT_POINTER
*MqttClientProxyMessage.data max_size:500

Wyświetl plik

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

Wyświetl plik

@ -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
*ServiceEnvelope.gateway_id type:FT_POINTER

Wyświetl plik

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