mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-28 17:45:49 +03:00
[GH-ISSUE #155] PubSubClient doesn't stay .connected() #121
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jimbwlah on GitHub (Apr 19, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/155
Hi,
Thank you for your excellent WifiManager. I am having an issue with the pubsubclient where by it doesnt maintain it's connected state -
I have my code as so
... unfotunately, once I have connected to my MQTT server, client.connected() is reset when client.loop() is called and so it keeps reconnected.
Any ideas?
I am using this PubSubClient as the callback methods are more advanced - https://github.com/Imroy/pubsubclient
Thanks
@kentaylor commented on GitHub (Apr 24, 2016):
Your problems are with calls to the PubSubClient object.
They appear to be unrelated to WiFiManager.
@tzapu commented on GitHub (May 8, 2016):
hi @Jimbwlah , as @kentaylor mentioned (Thank you very much) this is more about the pubsubclient lib.
try to simplify everything like in the basic example they have
https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_basic/mqtt_basic.ino
maybe it will help
thanks guys