27 #ifndef _EASYUINO_RELAY_NAMED_h 28 #define _EASYUINO_RELAY_NAMED_h 30 #include "Utilities.h" 32 #include "Printable.h" 36 #define MAX_NAME_SIZE 15 38 #define RELAY_ON_STRING "On" 39 #define RELAY_OFF_STRING "Off" 51 char _name[MAX_NAME_SIZE + 1];
58 RelayNamed(IN uint8_t arduinoPin, IN
const char* deviceName);
RelayNamed offers the same API of the Relay plus the possibility to associate a string label to the A...
Definition: RelayNamed.h:47
char * toString() const
Used to return a string representation of the object state.
RelayNamed(IN uint8_t arduinoPin, IN const char *deviceName)
Constructor.
Relay offers a simple API to interact with relay devices.
Definition: Relay.h:39
Provides an interface interface to write objects to a Stream.
Definition: Printable.h:42