📝 docs

This commit is contained in:
JMARyA 2025-04-30 10:02:04 +02:00
parent a567214f58
commit 164c71ddfe
9 changed files with 36 additions and 2 deletions

View file

@ -17,6 +17,7 @@ pub async fn handle_mqtt(topic: String, data: Vec<u8>) {
);
}
/// Send something back to the server on `topic`
pub async fn send_back<T: Serialize>(client: &AsyncClient, topic: &str, request: T) {
let data = serde_json::to_string(&request).unwrap();