One-wire tread more relaxed logging.

Version 0.9.17a2. Disabled a lot of mutex locks, some are blocking and need to be fixed. This version seems to be working, more or less.

Version 0.9.17a1. Revised starting and stopping the threads. Fixed stopping the command server thread. Moved one-wire tempeature sensors resolution correction to the one-wire thread. The devices thread fetches temperatures from the one-wire thread. The one-wire thread does everything for the temperature sensors. The command server uses private sockets. Still, only one session at the same time is handled.

Added state to scan vanished one-wire devices. Update devices if a one-wire device returns on the bus.

Fix for compile with wiringPi

Read ds2413 moved to one-wire thread. Only reprogram if it is an input and programmed as output.

One-wire thread is now the first to start. The devices_detect() function now uses the detected one-wire linked list instead of scan the sysfs. Base code for ds2413 added in the state table, needs rework.

State machine logging only when debug is active.

Added one-wire thread and some old state table macro's. The state machine first state scans new one-wire devices and stores them in a linked list.

Version 0.9.17

Moved all delay functions into a new general file.

Log compile options on startup.

Brought the retry attempts to read the DHT11 sensors to the main devices loop. The actual read function is now very simple. Called every 30 seconds when all is well, or 2 seconds if something is wrong.

Version 0.9.16. Final changes DHT11 reading via sysfs.

Better detection of the DHT11 sensors. Read DHT11 with errors detection and reapeated tries.

(0) -300 -100 -15 +15 tip

mercurial