27 #ifndef _EASYUINO_RELAY_h 28 #define _EASYUINO_RELAY_h 30 #include "Utilities.h" 51 Relay(IN uint8_t arduinoPin);
62 bool begin(IN
bool isNormallyClosed, IN uint8_t normallyClosedPinLevel);
bool begin()
Used to put the device ready to receive requests.
void end()
Used to stop the device API.
Relay(IN uint8_t arduinoPin)
Constructor.
General class that provides the common API behaviour for all the devices/sensors. ...
Definition: Device.h:42
void turnOff()
Turns off the device that is connected to the relay (depends on how the begin(bool,uint8_t) was called)
void turnOn()
Turns on the device that is connected to the relay (depends on how the begin(bool,uint8_t) was called)
Relay offers a simple API to interact with relay devices.
Definition: Relay.h:39