Hi, that’s one of the things I’m currently facing with Thinger. I thought its time to report it - also someone might be able to give me an advice.
I’m running Thinger client on both ESP8266 and Linux computer. Yes I compiled the code for Ubuntu 14.04 x64. Anyway, my public IP changes once every week or every time I reboot the router. When that happens, I loose both devices (ESP8266 and PC) from the connected devices and I can not control both any more. Even if I wait for 1 week.
Before using ubuntu, I thought its something with the ESP8266 so I added the following code but later I realized its not WL_CONNECTED issue.
if(WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) { delay(5000); thing.add_wifi(SSID, SSID_PASSWORD); } }
The code above was added to the void loop() with the hope that it would attempt to reconnect if wireless is not connected.
If I restart the ESP8266 everything goes back to normal. Same if I re-run the code on Ubuntu.
Any thoughts?