log every payload variant
Some checks failed
/ build-container (push) Has been cancelled

This commit is contained in:
Finn 2024-10-17 14:42:25 -07:00
parent af3d7c316a
commit 148190a768

View file

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