include some debug info in matrix message
All checks were successful
/ build-container (push) Successful in 5m42s
All checks were successful
/ build-container (push) Successful in 5m42s
This commit is contained in:
parent
d1a6a16a08
commit
af3d7c316a
1 changed files with 12 additions and 9 deletions
|
@ -120,15 +120,18 @@ async fn handle_decoded_packet(
|
||||||
meshtastic::protobufs::PortNum::TextMessageApp => {
|
meshtastic::protobufs::PortNum::TextMessageApp => {
|
||||||
log::debug!("posting packet to matrix: {:?}", packet);
|
log::debug!("posting packet to matrix: {:?}", packet);
|
||||||
log::debug!("decoded: {:?}", decoded);
|
log::debug!("decoded: {:?}", decoded);
|
||||||
debug_message(
|
|
||||||
&matrix_sender,
|
let message = format!(
|
||||||
format!(
|
"text from {:02x}: {} (snr: {}, rssi: {}, hop limit: {}, hop start: {})",
|
||||||
"Text from {:?}: {}",
|
packet.from,
|
||||||
decoded.source,
|
std::str::from_utf8(&decoded.payload)?,
|
||||||
std::str::from_utf8(&decoded.payload)?
|
packet.rx_snr,
|
||||||
),
|
packet.rx_rssi,
|
||||||
)
|
packet.hop_limit,
|
||||||
.await?;
|
packet.hop_start
|
||||||
|
);
|
||||||
|
|
||||||
|
debug_message(&matrix_sender, message).await?;
|
||||||
}
|
}
|
||||||
_ => log::debug!(
|
_ => log::debug!(
|
||||||
"dropping packet we havent implemented support for ({})",
|
"dropping packet we havent implemented support for ({})",
|
||||||
|
|
Loading…
Reference in a new issue