Skip to content
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

Enhance loop() to be more resilient #161

Open
brentru opened this issue Apr 11, 2023 · 0 comments
Open

Enhance loop() to be more resilient #161

brentru opened this issue Apr 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@brentru
Copy link
Member

brentru commented Apr 11, 2023

The loop() method seems to cause a lot of confusion regarding its purpose, invocation, and operation. I was discussing with @dhalbert how to improve this and have some ideas...

This issue proposes:

  • We create a new method (network_loop(). This method handles:
    • WiFi network connectivity (are we connected prior to polling? What do we do if the WiFi is disconnected during the while True)
    • MQTT broker connectivity (are we still connected to the broker, prior to calling loop()
    • MQTT network loop() polling
    • Handling failures within a MQTT loop() call
@brentru brentru added the enhancement New feature or request label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant