Struct homie_controller::HomieController
source · [−]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.