From a030461fcc618dd560d24aec3b3dc3e9440603d6 Mon Sep 17 00:00:00 2001 From: Gwendal <47559821+GwendalRaoul@users.noreply.github.com> Date: Fri, 3 Jul 2020 10:39:21 +0200 Subject: [PATCH] Add network address to PacketReceivedEvent This information is not part of a message received from Wirepas Network but the gateway knows it from the received sink. It is required in the MQTT topic and that is the only info that is in MQTT part and not in protobuf. Setting it may help backends as they not necessarily need to keep an association table from gateway_id/sink_id to network_id --- gateway_to_backend/protocol_buffers_files/data_message.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gateway_to_backend/protocol_buffers_files/data_message.proto b/gateway_to_backend/protocol_buffers_files/data_message.proto index 4eb5ffc..eaaf729 100644 --- a/gateway_to_backend/protocol_buffers_files/data_message.proto +++ b/gateway_to_backend/protocol_buffers_files/data_message.proto @@ -47,4 +47,5 @@ message PacketReceivedEvent { optional uint32 payload_size = 10; optional uint32 hop_count = 11; -} \ No newline at end of file + optional uint64 network_address = 12; +}