PICloud resolve addr

This commit is contained in:
2021-04-12 15:02:42 +03:00
parent dbd2267a8c
commit 5042cd739f
3 changed files with 4 additions and 5 deletions

View File

@@ -62,9 +62,8 @@ void PICloudClient::setKeepConnection(bool on) {
bool PICloudClient::openDevice() {
PIString p = path();
// piCout << "PICloudClient open device" << p;
bool op = eth.connect(p, false);
// piCout << "PICloudClient open device" << path();
bool op = eth.connect(PIEthernet::Address::resolve(path()), false);
if (op) {
mutex_buff.lock();
eth.startThreadedRead();