Skip to content

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