Skip to content

User guide ONOFF 09

Florian edited this page Jan 27, 2019 · 1 revision

This module enables to actuate things by giving to a PIN a HIGH or LOW value corresponding to an MQTT topic. Example usage: Connect a transistor to power a relay, connect a led...

If you want to use this actuator uncomment in user_config

#define ZactuatorONOFF

The pin controlled is set on config_ONOFF.h #define ACTUATOR_ONOFF_PIN 4

So as to pilot the pin use the following commands:

OFF command: mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m OFF

ON command mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m ON

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.