-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After integrating ThingSpeak calls, ESP8266 attempts reconnection #198
Comments
Yes, I had exactly the same experience. I still haven't resolved it. There On Sat, Sep 10, 2016 at 2:09 AM, Tomoyuki Hisada [email protected]
|
I responded from my mobile device of someone responding to this issue when I wrote the 2nd reply. Looks like that response is no longer in here, in case anyone is confused. Has anyone else tried this and had the same issue? I duplicated this using just a super simple program and it doesn't seem to stay connected to MQTT when I make any call to ThingSpeak. Do any of you have similar disconnect issues when connecting to any other IP destination? |
Tomoyuki, did you find a way to resolve this? On Sat, Sep 10, 2016 at 2:09 AM, Tomoyuki Hisada [email protected]
|
Same problem here. If you disconnect before you publish to thingspeak it works fine. I guess, the esp (or the wificlient object) can handle only one tcp socket. |
Sorry for the basic question... Are you using two different wificlient objects to initialize the pubsubclient and thingspeak libraries? |
In my case I use the same object. |
Please try to instantiate two different wificlient objects. |
Sorry for the delay: It works fine. I guess you can close the topic |
RE: Potential compatibility issue w/ latest thinkspeak library
Your library is awesome and it has been working great for me for quite some time. I am testing an integration to ThingSpeak to collect / log data on activity, uptime, stability, etc. Whenever I make a call to ThingSpeak the loop detects that it's disconnected and runs the reconnect() routine. It reconnects fine, but I'm wondering what is causing this and if it's truly disconnected or a symptom of something worse. Because it reconnects fine there is no reason code or anything else I can figure out for debugging.
I made a pool pump controller and really want to work out any stability bugs.
Here are some of the details and pertinent code snips...
ESP8266-12e
Good RF connection (~30dB of SNR); infrastructure reports good stability. (everything is stable until I make a ThingSpeak publish call)
Libraries I'm using:
Logic to throw relays and calls to ThingSpeak:
In snippet above, when I trigger the light it writes out to ThingSpeak and I get the reconnect() routing kicking in. However, when triggering the pump I commented out the call to ThingSpeak and no error.
Reconnect routine:
My loop:
Would love to know if others have encountered this. I'm trying to figure out how to capture more debug info to troubleshoot.
Thanks!
The text was updated successfully, but these errors were encountered: