mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 16:44:11 +02:00
logging
This commit is contained in:
parent
964ef6e398
commit
a4ff434120
1 changed files with 5 additions and 0 deletions
|
|
@ -115,6 +115,11 @@ async fn mqtt_client(host: &str, port: u16, device_states: DeviceStates) {
|
|||
|
||||
while let Ok(notification) = event_loop.poll().await {
|
||||
if let Event::Incoming(Packet::Publish(message)) = notification {
|
||||
println!(
|
||||
"{} {}",
|
||||
message.topic,
|
||||
std::str::from_utf8(message.payload.as_ref()).unwrap_or_default()
|
||||
);
|
||||
let topic = Topic::from(message.topic.as_str());
|
||||
|
||||
match topic {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue