Skip to content

Consolidate retry-logic #63

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

Merged
merged 8 commits into from
Oct 3, 2022
Merged

Consolidate retry-logic #63

merged 8 commits into from
Oct 3, 2022

Conversation

bablokb
Copy link
Contributor

@bablokb bablokb commented Sep 5, 2022

This patch fixes #61 by

  • adding retries and timeout-parameters to all levels of the software-stack
  • pushing timeout/retries from top to bottom
  • executing retry-loop only from at_response

The number of retries can now be controlled at application-level, the user of the library can decide if she needs many retries or prefers fast failing.

The patches also gets rid of a number of loops that either never did what they should do or which were never executed anyhow.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read through the issue and information here in the PR. Your proposed fixes do make sense to me, and nothing better comes to mind.

The code changes look good to me as well. I don't have much experience with these older ESP devices, and don't have hardware to test with.

@FoamyGuy FoamyGuy merged commit 42644e6 into adafruit:main Oct 3, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 4, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP_ATcontrol to 0.8.0 from 0.7.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP_ATcontrol#63 from bablokb/fix-retries

Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.10.5 from 3.10.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#86 from tekktrik/doc/add-typing

Updating https://github.com/adafruit/Adafruit_CircuitPython_INA260 to 1.3.11 from 1.3.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_INA260#21 from gpongelli/patch-3

Updating https://github.com/adafruit/Adafruit_CircuitPython_LIS331 to 1.0.13 from 1.0.12:
  > Merge pull request adafruit/Adafruit_CircuitPython_LIS331#6 from tcfranks/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_turtle to 2.2.11 from 2.2.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_turtle#31 from shulltronics/cpython-compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection retries are broken for ESP_ATcontrol.connect() and ESPAT_WiFiManager.connect()
2 participants