type adaptive remote variable

This commit is contained in:
Siwat Sirichai 2024-02-13 02:28:34 +07:00
parent 57dfa30cf0
commit 1b9163d468
2 changed files with 82 additions and 1 deletions

View file

@ -20,6 +20,12 @@ class RemoteVariable
void subscribe();
void requestValue();
char* getValue();
int getValueAsInt();
long getValueAsLong();
double getValueAsDouble();
void setIntValue(int value);
void setLongValue(long value);
void setDoubleValue(double value);
uint8_t registerCallback(std::function<void(char*)>);
void unregisterCallback(uint8_t handler);