adafruit / adafruit/Adafruit_CircuitPython_SGP40
program stop on disconnect
- Dominant language
- Python
- Stars
- 10
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I tried the exemple program, and I got script stop when SGP40 is not found (for any reason like physical disconnection).
I would have preferred that script "try" to connect then when fail, try again later.
I did try to add a "try" instruction, but with no result, it seams that the problem is in the driver.
Is there a way to change this?
thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the example program and the SGP40 driver, then reproduce the failure with the sensor physically disconnected. Trace where the connection error stops execution and determine how a later retry should behave; done means the example continues running and retries after the SGP40 is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100