From eb392c898d4410b0ef9ce68612b125ee2ffa9683 Mon Sep 17 00:00:00 2001 From: Adam McQuilkin <46639306+ajmcquilkin@users.noreply.github.com> Date: Sun, 10 Mar 2024 14:35:32 -0700 Subject: [PATCH] Bumped protos to use new Heartbeat packet --- src/connections/handlers.rs | 2 +- src/connections/stream_api.rs | 2 ++ src/protobufs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/connections/handlers.rs b/src/connections/handlers.rs index f6c74c9..ca5a2c3 100644 --- a/src/connections/handlers.rs +++ b/src/connections/handlers.rs @@ -220,7 +220,7 @@ where let mut write_stream = write_stream.lock().await; - let heartbeat_packet = protobufs::ToRadio::default(); + let heartbeat_packet = protobufs::Heartbeat::default(); let mut buffer = Vec::new(); match heartbeat_packet.encode(&mut buffer) { diff --git a/src/connections/stream_api.rs b/src/connections/stream_api.rs index 2d74796..8f84481 100644 --- a/src/connections/stream_api.rs +++ b/src/connections/stream_api.rs @@ -198,6 +198,8 @@ impl ConnectedStreamApi { priority: 0, // * not transmitted rx_rssi: 0, // * not transmitted delayed: 0, // * not transmitted + hop_start: 0, // * set on device + via_mqtt: false, from: own_node_id.id(), to: packet_destination.id(), id: generate_rand_id(), diff --git a/src/protobufs b/src/protobufs index 468ff2e..6942175 160000 --- a/src/protobufs +++ b/src/protobufs @@ -1 +1 @@ -Subproject commit 468ff2e2457d7534a907af0a21bdede9f4042cb7 +Subproject commit 69421753948f2cb0e3eedabaef3a3ca9a286ce77