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.
Hi @yahya_khaled I think this won’t change anything, as this is currently handled inside the thing.handle() method. Checkout the following code, and you will see how this is checked constantly:
I recommend you to enable the debug, to try to verify what is happening when you reboot your router. Please, copy the DEBUG Output here to check what is happening in the reboot process. http://docs.thinger.io/arduino/#coding-enabling-debug-output
I have no such issues while using WiFi, and both my NodeMCUs and Linux devices are able to keep connected for months easily (even when my router lost the internet connection or it receives a new dynamic ip). What is your router model?
Hi @yahya_khaled! I have been testing and working with some specific conditions to try to reproduce the issue, and seems that I have found something. I just released a new library (2.4.3), that should be available in the following hours as a regular Arduino library update.
Hope this update fix all the connectivity problems!
BTW; I replaced the original info by my_device and my_user
Somehow the device is online but not online. In reality the device is still online in my PC. I only experience this after the router reboots or public IP lease renew. I hope this wont be the case with the new release of the library.
Hi Alvarolb; you are a genius!! For me that is a major bug fix . It did resolve the issue. I just checked - public IP has changed and the device is still working. I never had this working before.
Its still running smoothly - very stable for 2 weeks.
One thing though - not sure if related to your library. THE ESP8266 seems to work as client and AP mode at once. There is an AP called ESP_01CCC0. Goes off with power off.
Great @yahya_khaled ! And, yes, I have to update the linux client also with some new features. Will take a look also to the issue I found in the Arduino library.