Satic vector, new epprom routines, new wireless relay storage method
This commit is contained in:
@ -9,18 +9,25 @@
|
||||
|
||||
class WirelessRelay
|
||||
{
|
||||
public:
|
||||
|
||||
static const MAX_NAME_LENGTH = 32;
|
||||
|
||||
char name[MAX_NAME_LENGTH];
|
||||
|
||||
private:
|
||||
bool _state = false;
|
||||
uint16_t _nameAddr;
|
||||
uint16_t _id;
|
||||
void sendBit( const bool i);
|
||||
void sync();
|
||||
void sendId();
|
||||
|
||||
public:
|
||||
WirelessRelay(const uint16_t id);
|
||||
WirelessRelay(const uint16_t id, uint16_t nameAddr, char* nameIn = "");
|
||||
WirelessRelay();
|
||||
void setTimeout(uint64_t timeout);
|
||||
void init(const uint16_t id);
|
||||
void init(const uint16_t id, uint16_t nameAddr, char* nameIn = "");
|
||||
void on();
|
||||
void off();
|
||||
uint16_t getId();
|
||||
|
Reference in New Issue
Block a user