Skip to content

Detect Comms Failures and Report Status

Compare
Choose a tag to compare
@BjarneBitscrambler BjarneBitscrambler released this 02 Jan 17:53
· 18 commits to main since this release

This release continues execution despite a communications failure with a sensor. If there is such a failure, that sensor is tagged as unavailable, and the system status is set to SOFT_FAILURE. On subsequent scheduled reads of that sensor, an attempt is made to reinitialize the sensor. If successful, it is tagged as available and the system status set to NORMAL.

This prevents temporary glitches in I2C comms from halting the entire system and makes graceful recovery possible. By monitoring system status, a user of the library can determine whether the system is operating NORMALly and the data are trustworthy.