iot components callback
This commit is contained in:
parent
d3497b671e
commit
9fa8cbc4b1
10 changed files with 117 additions and 32 deletions
|
@ -11,7 +11,10 @@ class DigitalInputIoT : public IoTComponent {
|
|||
void setDigitalInputsPublishEnabled(bool enabled);
|
||||
void handleValueChange(uint8_t pin, uint8_t value);
|
||||
void registerValueChangeCallback(void (*callback)(uint8_t, uint8_t));
|
||||
void publishReport();
|
||||
uint8_t getType();
|
||||
private:
|
||||
bool digital_inputs_publish_enabled = false;
|
||||
|
||||
DigitalInputCard *card;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue