If no saved IP, then can say we're not connected w/o command mode
This commit is contained in:
@@ -203,6 +203,9 @@ public:
|
||||
virtual uint8_t connected() {
|
||||
if (available()) {
|
||||
return true;
|
||||
// if we never got an IP, it can't be connected
|
||||
} else if (at->savedIP == IPAddress(0, 0, 0, 0)){
|
||||
return false;
|
||||
}
|
||||
return sock_connected;
|
||||
// NOTE: We dont't check or return
|
||||
|
Reference in New Issue
Block a user