Skip to content

examples

jelena1802 edited this page Aug 20, 2019 · 13 revisions

HomeControl MQTT library

Check examples folder

Notes for the examples

1. basic_OnOff

  • variable last_active_state for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a //reverse state pin comment next to it).

2. basic_OnOffEthernet

  • Find the source file in Arduino/libraries/homecontrol_mqtt/src/arduinoWrapper (ArduinoConfig.h) and uncomment the #define line that you want to use. Make sure to return the file to its original state after you're done, otherwise you will not be able to compile any other example.

3. basic_Level

  • variable last_active_state for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a //reverse state pin comment next to it).

4. basic_Motion

  • variable last_active_state for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a //reverse state pin comment next to it).

5. advanced_multiOnOff

  • variable last_active_state for DEVICE_PIN is set to reverse state to accommodate debugging on built-in LEDs on ESP8266. If you want to avoid using reverse logic on GPIO pin to control external devices, make sure to change that variable (it has a //reverse state pin comment next to it).
  • find the source file in Arduino/libraries (ArduinoConfig.h) and uncomment the #define line that you want to use. Make sure to return the file to its original state after you're done, otherwise you will not be able to compile any other example. (only necessary when uploading the sketch to Arduino boards)

6. basic_Temperature

7. basic_TemperatureTarget_OnOff

Clone this wiki locally