mqtt-tiny
Welcome to mqtt-tiny
🎉
mqtt-tiny
is a tiny MQTT 3.1.1 codec
implementation. It is limited to packet en-/decoding, and does not handle state or transport-level stuff.
Example
use MqttConnect;
// Create a simple connect packet
const CLIENT_ID: &str = "mqtttinyreadmeexample";
let connect = new;
// Serialize the connect packet
let connect_bytes = connect.write.unwrap;
assert_eq!;
Running provided examples
To run the provided example, just set the MQTT_ADDRESS
, MQTT_USERNAME
and MQTT_PASSWORD
environment variables
respectively to connect to your server.