Crate mqtt_async_client

Source
Expand description

An MQTT 3.1.1 client written in Rust.

For example usage see the command-line test app at examples/mqttc.rs, and integration tests at tests/*.rs.

This crate uses the log crate. To enable extra, potentially sensitive logging (including passwords) enable the “unsafe-logging” Cargo feature. With “unsafe-logging” enabled at the “trace” log level every packet is logged.

The “tls” feature is enabled by default and allows connections over TLS using rustls. If TLS is not required you can opt out by specifying default-features = false. E.g. mqtt-async-client = { version = "0.1", default-features = false }

The “websocket” feature is disabled by default and allows connections over websocket using tokio-tungstenite. If websocket functionality is desired, you can opt in by enabling that feature in your cargo.toml file.

Modules§

client
An MQTT client and supporting types.
util
Some useful types.

Enums§

Error
Errors returned by the library.

Type Aliases§

Result
Fallible result values returned by the library.