From 148190a768122be5fc965d027b19def7ea1a1510 Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 17 Oct 2024 14:42:25 -0700 Subject: [PATCH] log every payload variant --- src/meshtastic.rs | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/src/meshtastic.rs b/src/meshtastic.rs index 4e3bb50..f5e3f00 100644 --- a/src/meshtastic.rs +++ b/src/meshtastic.rs @@ -97,13 +97,33 @@ impl MeshtasticClient { PayloadVariant::Channel(channel) => { log::debug!("Channel: {:?}", channel); } - // PayloadVariant::NodeInfo(node_info) => { - // upsert_remote_node(db, node_info).await? - // } - // PayloadVariant::Decoded(decoded) => { - // debug_message(&matrix_sender, format!("Decoded: {:?}", decoded)) - // } - _ => log::debug!("dropping unknown packet"), + PayloadVariant::Config(config) => { + log::debug!("config: {:?}", config); + } + PayloadVariant::ConfigCompleteId(config_complete_id) => { + log::debug!("config complete ID: {:?}", config_complete_id); + } + PayloadVariant::NodeInfo(node_info) => { + log::debug!("node info: {:?}", node_info); + } + PayloadVariant::Rebooted(rebooted) => { + log::debug!("rebooted: {:?}", rebooted); + } + PayloadVariant::ModuleConfig(module_config) => { + log::debug!("module config: {:?}", module_config); + } + PayloadVariant::QueueStatus(queue_status) => { + log::debug!("queue status: {:?}", queue_status); + } + PayloadVariant::XmodemPacket(xmodem_packet) => { + log::debug!("xmodem packet: {:?}", xmodem_packet); + } + PayloadVariant::Metadata(metadata) => { + log::debug!("metadata message: {:?}", metadata); + } + PayloadVariant::MqttClientProxyMessage(mqtt_client_proxy_message) => { + log::debug!("mqtt client proxy message: {:?}", mqtt_client_proxy_message); + } } }