Skip to content

Commit 307ebf8

Browse files
committed
fixing Energia IDE compilation while checking local ip address
1 parent 69b3efe commit 307ebf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=thinger.io
2-
version=2.5.5
2+
version=2.5.6
33
author=Alvaro Luis Bustamante <[email protected]>
44
maintainer=Thinger.io <[email protected]>
55
sentence=Arduino library for the Thinger.io Internet of Things Platform.

src/ThingerWifi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ThingerWifiClient : public ThingerClient {
4141
protected:
4242

4343
virtual bool network_connected(){
44-
return WiFi.status() == WL_CONNECTED && WiFi.localIP() != INADDR_NONE;
44+
return (WiFi.status() == WL_CONNECTED) && !(WiFi.localIP() == INADDR_NONE);
4545
}
4646

4747
virtual bool connect_network(){

0 commit comments

Comments
 (0)