|
MySensors Library & Examples
2.3.2-62-ge298769
|
Go to the documentation of this file.
45 #define MY_DEBUG_VERBOSE_SIGNING
46 #define MY_NODE_LOCK_FEATURE
50 //#define MY_RADIO_NRF5_ESB
51 //#define MY_RADIO_RFM69
52 //#define MY_RADIO_RFM95
55 #define MY_SIGNING_SOFT
56 //#define MY_SIGNING_ATSHA204
61 #define MY_SIGNING_REQUEST_SIGNATURES
65 #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
68 #ifndef MY_SIGNING_ATSHA204_PIN
69 #define MY_SIGNING_ATSHA204_PIN 17
98 present(lock, S_LOCK,
"SecureActuator",
false);
122 Serial.print(
"Incoming change for lock:");
124 Serial.print(
", New status: ");
125 Serial.println(message.
getBool());
bool sendSketchInfo(const char *name, const char *version, const bool requestEcho=false)
uint8_t getSensor(void) const
Get sensor ID of message.
void receive(const MyMessage &message)
Incoming message handler.
void loop()
Sketch execution code.
uint8_t loadState(const uint8_t pos)
#define NOF_LOCKS
Total number of attached locks.
#define LOCK_1
Arduino Digital I/O pin number for first lock (second on pin+1 etc)
void presentation()
Node presentation.
void saveState(const uint8_t pos, const uint8_t value)
uint8_t getType(void) const
Get message type.
bool present(const uint8_t sensorId, const mysensors_sensor_t sensorType, const char *description="", const bool requestEcho=false)
void setup()
Called after node initialises but before main loop.
API declaration for MySensors.
bool isEcho(void) const
Getter for echo-flag.
#define LOCK_LOCK
GPIO value to write to lock attached lock.
bool getBool(void) const
Get bool payload.
MyMessage is used to create, manipulate, send and read MySensors messages.
#define LOCK_UNLOCK
GPIO value to write to unlock attached lock.