|
Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Loom_Relay.h>


Public Member Functions | |
| Loom_Relay (const byte controlPin=10) | |
| Loom_Relay (Manager &man, const byte controlPin=10) | |
| void | control (JsonArray json) override |
| void | initialize () override |
| void | package (JsonObject json) override |
| void | printModuleName (const char *message) override |
| const char * | getModuleName () override |
| void | setState (bool state) |
Public Member Functions inherited from Actuator | |
| Actuator (ACTUATOR_TYPE actType, int instance) | |
| virtual void | initialize ()=0 |
| virtual void | package (JsonObject json)=0 |
| virtual void | control (JsonArray json)=0 |
| void | printModuleName (const char *message) override |
| const char * | getModuleName () override |
| const char * | typeToString () |
| int | get_instance_num () |
Public Member Functions inherited from Module | |
| Module (const char *modName) | |
| void | setModuleName (const char *modName) |
| virtual const char * | getModuleName () |
| virtual void | printModuleName (const char *message) |
| virtual void | initialize ()=0 |
| virtual void | measure ()=0 |
| virtual void | package ()=0 |
| virtual void | power_up ()=0 |
| virtual void | power_down ()=0 |
| virtual void | display_data () |
Additional Inherited Members | |
Public Attributes inherited from Module | |
| bool | moduleInitialized = true |
| int | module_address = -1 |
Protected Member Functions inherited from Actuator | |
| void | measure () override |
| void | power_up () override |
| void | power_down () override |
| void | package () override |
Relay controls for integration with Max
| Loom_Relay::Loom_Relay | ( | Manager & | man, |
| const byte | controlPin = 10 |
||
| ) |
Construct a new object to manually control the relay
| man | Instance of the Manager |
|
overridevirtual |
Called when a packet is received that needs to move the actuator
| json | The parameters that can change |
Implements Actuator.
|
inlineoverridevirtual |
Reimplemented from Actuator.
|
inlineoverridevirtual |
Implements Actuator.
|
overridevirtual |
Implements Actuator.
|
inlineoverridevirtual |
Reimplemented from Actuator.
| void Loom_Relay::setState | ( | bool | state | ) |
Set the state of the relay
| state | New state of the relay |