online

This commit is contained in:
JMARyA 2025-04-30 16:51:49 +02:00
parent 6e31b95417
commit 46cf2f4572
5 changed files with 24 additions and 2 deletions

View file

@ -62,7 +62,7 @@ pub async fn send_back<T: Serialize>(client: &AsyncClient, topic: &str, data: T)
.encrypt(data.as_bytes(), &rec);
let topic = format!("{machine_id}/{topic}");
log::info!("Publish to {machine_id}{topic}");
log::info!("Publish to {topic}");
client
.publish(topic, rumqttc::QoS::AtMostOnce, true, payload)
.await