1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-14 02:30:41 +00:00

Update ESPUI.cpp

This commit is contained in:
ericBcreator
2020-10-01 18:51:54 +02:00
committed by GitHub
parent acaf6898fd
commit 57a81dbee3

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(':'));