BUG: If external sensor data is not available, garbage is returned (eventually)
Occasionally the WS2300 will lose communication with the external sensors. In this case, a large number of retries is performed. According to the source there are 20 retries with 10 seconds between retries. This is per function returning external data.
There are two problems with this:
1. If a program is running as a cron job things can get messy if a second instance is started before the first has finished.
2. Eventually the retries will be exhausted, and if valid data is still not available gerbage data is returned.
Test case
Run fetch2300 with the outside sensor batteries removed.
Environment
Open2300 version: |
1.10 |
Shared libraries: |
mysql, postgresql |
Server OS: |
Debian sarge |
--
SteveSouth - 22 Sep 2005
Follow up
Fix record