cloud test

This commit is contained in:
2020-08-26 17:28:56 +03:00
parent 3965e54e38
commit cfebf8cf23
11 changed files with 110 additions and 32 deletions

View File

@@ -3,14 +3,22 @@
DispatcherClient::DispatcherClient(PIEthernet * eth_) {
eth = eth_;
CONNECTU(&disconnect_tm, tickEvent, eth, close);
eth->startThreadedRead();
CONNECTU(eth, threadedReadEvent, this, readed);
CONNECTU(eth, disconnected, this, disconnected);
piCoutObj << "client connected" << eth->sendAddress();
disconnect_tm.start(10000);
}
DispatcherClient::~DispatcherClient() {
// delete eth;
}
PIString DispatcherClient::address() {
return eth->path();
}