PIEthernet reconnect
This commit is contained in:
@@ -33,10 +33,10 @@ bool PICloudServer::openDevice() {
|
||||
piCout << "PICloudServer open device" << path();
|
||||
bool op = eth.connect(path(), false);
|
||||
if (op) {
|
||||
// CONNECTL(ð, disconnected, [this](bool){opened_ = false;});
|
||||
return true;
|
||||
} else {
|
||||
eth.close();
|
||||
}
|
||||
eth.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user