mqtt-service

Crates.iomqtt-service
lib.rsmqtt-service
version0.2.0
sourcesrc
created_at2024-06-22 10:03:34.33904
updated_at2024-06-22 10:12:21.559428
descriptionThis crates provide a convenient support for the MQTT Response-Pattern. It uses the rumqttc library to connect to the MQTT broker.
homepage
repositoryhttps://gitlab.com/cyloncore/mqtt-service
max_upload_size
id1280325
size8,516
(cyrilleberger)

documentation

README

mqtt-service

This crates provide a convenient support for the MQTT Response-Pattern. It uses the rumqttc library to connect to the MQTT broker.

How to use

cargo add mqtt-service
let connection = mqtt_service::Connection::new("name-of-the-client", "localhost", 1883);
let r = connection.call_service("name/of/service" "Some data");
let res = futures::executor::block_on(r.unwrap());
println!("Result is '{res:?}'");
Commit count: 1

cargo fmt