Skip to content

examples

jelena1802 edited this page Aug 16, 2019 · 13 revisions

HomeControl MQTT library

Check examples folder

Notes for the examples

For basic_On_Off, basic_Level, basic_Motion: be careful of the reverse pin state for the DEVICE_PIN; it will light up built-in LED as expected, but externally connected LED and other devices will have reverse logic applied to it. Find the variable with the comment //reverse pin state in the code and switch it if you want it to work.

On_Off_ethernet: 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.

Clone this wiki locally