mirror of
https://github.com/s00500/ESPUI.git
synced 2024-12-23 00:40:49 +00:00
cleanup
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
parent
6506f6fe1c
commit
cda1a573d6
@ -563,7 +563,7 @@ bool ESPUIClass::removeControl(uint16_t id, bool force_reload_ui)
|
||||
}
|
||||
else
|
||||
{
|
||||
jsonDom();
|
||||
jsonDom(); // resends to all
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -670,6 +670,10 @@ void ESPUIClass::updateControl(Control *control, int clientId)
|
||||
|
||||
if (clientId < 0)
|
||||
{
|
||||
if (this->verbosity >= Verbosity::VerboseJSON)
|
||||
{
|
||||
Serial.println("TextAll");
|
||||
}
|
||||
this->ws->textAll(json);
|
||||
return;
|
||||
}
|
||||
@ -684,11 +688,6 @@ void ESPUIClass::updateControl(Control *control, int clientId)
|
||||
if (clientId != tryId)
|
||||
{
|
||||
this->ws->client(tryId)->text(json);
|
||||
|
||||
if (this->verbosity >= Verbosity::VerboseJSON)
|
||||
{
|
||||
Serial.println(json);
|
||||
}
|
||||
}
|
||||
|
||||
count++;
|
||||
|
@ -256,7 +256,7 @@ public:
|
||||
const char *ui_title = "ESPUI"; // Store UI Title and Header Name
|
||||
Control *controls = nullptr;
|
||||
void jsonReload();
|
||||
void jsonDom(AsyncWebSocketClient *client);
|
||||
void jsonDom(AsyncWebSocketClient *client = nullptr);
|
||||
|
||||
Verbosity verbosity;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user