mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
не шлем данные Ws-клиентам если их нет
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user