fix SmartVariable Callback bug
This commit is contained in:
parent
dcc9092026
commit
b051ba8d90
|
@ -46,6 +46,11 @@ void SmartVariable::setValue(const char *value)
|
||||||
this->saveValue();
|
this->saveValue();
|
||||||
if (this->iotEnabled)
|
if (this->iotEnabled)
|
||||||
this->publishValue();
|
this->publishValue();
|
||||||
|
// Call Callbacks
|
||||||
|
for (auto const &callback : this->valueChangeCallbacks)
|
||||||
|
{
|
||||||
|
callback.second(this->value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *SmartVariable::getValue()
|
char *SmartVariable::getValue()
|
||||||
|
|
Loading…
Reference in New Issue