не шлем данные Ws-клиентам если их нет

This commit is contained in:
DmitriyTychina
2023-09-10 18:24:55 +03:00
parent 6c7c81f2c2
commit 1019143d0d

View File

@@ -414,6 +414,10 @@ void sendFileToWsByFrames(const String& filename, const String& header, const St
}
void sendStringToWs(const String& header, String& payload, int client_id) {
if (!(WiFi.softAPgetStationNum() || isNetworkActive())) {
return;
}
if (header.length() != 6) {
SerialPrint("E", "FS", F("wrong header size"));
return;