[![stable pipeline](https://gitlab.com/cyloncore/mqtt-service/badges/stable/pipeline.svg?key_text=stable)](https://gitlab.com/cyloncore/mqtt-service/-/pipelines?ref=stable) [![dev/1 pipeline](https://gitlab.com/cyloncore/mqtt-service/badges/dev/1/pipeline.svg?key_text=dev/1)](https://gitlab.com/cyloncore/mqtt-service/-/pipelines?ref=dev/1) [![docs](https://docs.rs/mqtt-service/badge.svg)](https://docs.rs/mqtt-service) [![crates.io](https://img.shields.io/crates/v/mqtt-service.svg)](https://crates.io/crates/mqtt-service)
mqtt-service ============ This crate provides a convenient support for the [MQTT Response-Pattern](https://www.hivemq.com/blog/mqtt5-essentials-part9-request-response-pattern/). It uses the rumqttc library to connect to the MQTT broker. **Note**: this crate is feature complete, and few changes are expected. How to use ---------- ```bash cargo add mqtt-service ``` ```rs 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:?}'"); ```