Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 750 Bytes

README_controller.md

File metadata and controls

29 lines (19 loc) · 750 Bytes

Controller Example

Implements a homie5 controller that will discover all homie5 devices on a mqtt broker and print out the devices and their property updates

How to run this example

This example needs a running mqtt broker. Set the following environment variable to make it work:

export HOMIE_MQTT_HOST=[mqtt hostname]
export HOMIE_MQTT_PORT=1883
export HOMIE_MQTT_USERNAME=[username]
export HOMIE_MQTT_PASSWORD=[password]
export HOMIE_MQTT_CLIENT_ID=[client-id]
export HOMIE_MQTT_HOMIE_DOMAIN=[homie-dev]

RUST_LOG=error,controller_example=debug,warn,info,error,verbose cargo run --example controller_example

TODO

check the code for now. Documentation will follow.

todo: add better documentation of the example