picloud add server logics

This commit is contained in:
2021-04-06 17:49:07 +03:00
parent be0db84147
commit fcf9f0f80e
9 changed files with 178 additions and 26 deletions

View File

@@ -40,7 +40,9 @@ void CloudServer::printStatus() {
for (auto c: clients) {
piCout << " " << c->address() << c->clientId();
}
for (auto c: clients) c->sendData(PIByteArray::fromHex("000000"));
server->sendData(PIByteArray::fromHex("000000"));
for (auto c: clients) {
c->sendData(PIByteArray::fromHex("000000"));
server->sendDataToClient(PIByteArray::fromHex("000000"), c->clientId());
}
}