pub struct HomieController { /* private fields */ }
Expand description

A Homie controller, which connects to an MQTT broker and interacts with Homie devices.

Implementations

Create a new HomieController connected to an MQTT broker.

Arguments
  • base_topic: The Homie base topic under which to look for Homie devices. “homie” is the recommended default.
  • mqtt_options: Options for the MQTT connection, including which broker to connect to.

Get a snapshot of the set of Homie devices which have been discovered so far, keyed by their IDs.

Get the Homie base topic which the controller was configured to use.

Poll the EventLoop, and maybe return a Homie event.

Attempt to set the state of a settable property of a device. If this succeeds the device will update the value of the property.

Disconnect from the MQTT broker.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.