picloud add server logics
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user