Skip to main content

Crate symqtt

Crate symqtt 

Source
Expand description

Synchronous MQTT 3.1.1 / 5.0 client — blocking API, no async runtime.

Client is Send + Sync: it uniquely owns one connection. Writes run on the caller thread; a read thread and an optional keepalive thread own the rest of the connection. Dropping a still-connected Client sends DISCONNECT.

§Crates

  • symqtt — this crate: connect, publish, subscribe, session
  • symqtt-codec — packet encode/decode
  • symqtt-transport — TCP / TLS

§Example

See v3::Client::connect and v5::Client::connect.

Modules§

transport
Protocol-agnostic byte-stream transport layer.
v3
MQTT 3.1.1 client implementation with blocking API
v5
MQTT 5.0 client implementation with blocking API