mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 09:10:54 +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
|
else
|
||||||
{
|
{
|
||||||
jsonDom();
|
jsonDom(); // resends to all
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -670,6 +670,10 @@ void ESPUIClass::updateControl(Control *control, int clientId)
|
|||||||
|
|
||||||
if (clientId < 0)
|
if (clientId < 0)
|
||||||
{
|
{
|
||||||
|
if (this->verbosity >= Verbosity::VerboseJSON)
|
||||||
|
{
|
||||||
|
Serial.println("TextAll");
|
||||||
|
}
|
||||||
this->ws->textAll(json);
|
this->ws->textAll(json);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -684,11 +688,6 @@ void ESPUIClass::updateControl(Control *control, int clientId)
|
|||||||
if (clientId != tryId)
|
if (clientId != tryId)
|
||||||
{
|
{
|
||||||
this->ws->client(tryId)->text(json);
|
this->ws->client(tryId)->text(json);
|
||||||
|
|
||||||
if (this->verbosity >= Verbosity::VerboseJSON)
|
|
||||||
{
|
|
||||||
Serial.println(json);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
@ -256,7 +256,7 @@ public:
|
|||||||
const char *ui_title = "ESPUI"; // Store UI Title and Header Name
|
const char *ui_title = "ESPUI"; // Store UI Title and Header Name
|
||||||
Control *controls = nullptr;
|
Control *controls = nullptr;
|
||||||
void jsonReload();
|
void jsonReload();
|
||||||
void jsonDom(AsyncWebSocketClient *client);
|
void jsonDom(AsyncWebSocketClient *client = nullptr);
|
||||||
|
|
||||||
Verbosity verbosity;
|
Verbosity verbosity;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user