Update ESPUI.cpp

This commit is contained in:
ericBcreator 2020-10-01 18:51:54 +02:00 committed by GitHub
parent acaf6898fd
commit 57a81dbee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -541,6 +541,10 @@ void onWsEvent(
ESPUI.updateControl(c, client->id());
c->callback(c, T_VALUE);
}
else if (msg.startsWith("tabvalue:"))
{
c->callback(c, client->id());
}
else if (msg.startsWith(F("svalue:")))
{
c->value = msg.substring(msg.indexOf(':') + 1, msg.lastIndexOf(':'));