[GH-ISSUE #327] Q: How to determine if connected in main loop ? #275

Closed
opened 2026-02-28 01:24:27 +03:00 by kerem · 3 comments
Owner

Originally created by @Gerry33 on GitHub (Mar 3, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/327

I need to query somehow if I'm connected within the main loop.
I send messages to an MQTT server. If I'm not connected I have to buffer.

Thanks for this library !

br
Gerry

Originally created by @Gerry33 on GitHub (Mar 3, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/327 I need to query somehow if I'm connected within the main loop. I send messages to an MQTT server. If I'm not connected I have to buffer. Thanks for this library ! br Gerry
kerem closed this issue 2026-02-28 01:24:27 +03:00
Author
Owner

@tzapu commented on GitHub (Mar 4, 2017):

hi,

you can just use the normal esp8266 and mqtt lib functions

cheers

On 3 Mar 2017, at 21:12, Gerry33 notifications@github.com wrote:

I need to query somehow if I'm connected within the main loop.
I send messages to an MQTT server. If I'm not connected I have to buffer.

Thanks for this library !

br
Gerry


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/327, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkMkTKkpYaUU1DUjgZKjUix0z0OI3ks5riGYpgaJpZM4MSorH.

<!-- gh-comment-id:284140835 --> @tzapu commented on GitHub (Mar 4, 2017): hi, you can just use the normal esp8266 and mqtt lib functions cheers > On 3 Mar 2017, at 21:12, Gerry33 <notifications@github.com> wrote: > > I need to query somehow if I'm connected within the main loop. > I send messages to an MQTT server. If I'm not connected I have to buffer. > > Thanks for this library ! > > br > Gerry > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub <https://github.com/tzapu/WiFiManager/issues/327>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkMkTKkpYaUU1DUjgZKjUix0z0OI3ks5riGYpgaJpZM4MSorH>. >
Author
Owner

@Gerry33 commented on GitHub (Mar 4, 2017):

@tzapu
Thank you very much for the fast response. Appreciated !

I wasn't aware that standard ESP routines are usable .
This did it:
if (WiFi.status() == WL_CONNECTED )

Again, a big thumb up for this lib.
br
Gerry

<!-- gh-comment-id:284142975 --> @Gerry33 commented on GitHub (Mar 4, 2017): @tzapu Thank you very much for the fast response. Appreciated ! I wasn't aware that standard ESP routines are usable . This did it: ` if (WiFi.status() == WL_CONNECTED )` Again, a big thumb up for this lib. br Gerry
Author
Owner

@tzapu commented on GitHub (Mar 4, 2017):

no probs, glad you like it

cheers

On 4 Mar 2017, at 12:31, Gerry33 notifications@github.com wrote:

Closed #327 https://github.com/tzapu/WiFiManager/issues/327.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/327#event-986423553, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkL77ZDOBIJUC-o5Ll4p02ANog3hXks5riT2CgaJpZM4MSorH.

<!-- gh-comment-id:284147753 --> @tzapu commented on GitHub (Mar 4, 2017): no probs, glad you like it cheers > On 4 Mar 2017, at 12:31, Gerry33 <notifications@github.com> wrote: > > Closed #327 <https://github.com/tzapu/WiFiManager/issues/327>. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub <https://github.com/tzapu/WiFiManager/issues/327#event-986423553>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkL77ZDOBIJUC-o5Ll4p02ANog3hXks5riT2CgaJpZM4MSorH>. >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#275
No description provided.