Improve relay state tracking
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
class WirelessRelay
|
||||
{
|
||||
private:
|
||||
bool _state = false;
|
||||
uint16_t _id;
|
||||
volatile unsigned char *_port;
|
||||
unsigned char _pin;
|
||||
@ -24,5 +25,6 @@ public:
|
||||
void on();
|
||||
void off();
|
||||
uint16_t getId();
|
||||
bool getExpectedState();
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user