Improve relay state tracking

This commit is contained in:
IMback
2017-11-05 17:41:40 +01:00
parent 21b636aa98
commit 1a932993ba
6 changed files with 10 additions and 1 deletions

View File

@ -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