temp returns last result for missing sensors
Posted: Wed Dec 16, 2015 10:04 am
Hello!
I connected 3 DS18b20 and attempted to read all 3. It works with all three sensors present.
But, with disconnected 3rd sensor instead of -127 I get same value 2nd sensor reads.
With only the first sensor connected, all three temperature readings were the same and from the first sensor.
With no sensors connected, all three readings were -127.
Since ESP voltage is 3.3V, sensors VCCs were connected to 3.3V (not parasite mode).
I used "temp" command in a timer. On each timer event only one sensor was read.
I connected 3 DS18b20 and attempted to read all 3. It works with all three sensors present.
But, with disconnected 3rd sensor instead of -127 I get same value 2nd sensor reads.
With only the first sensor connected, all three temperature readings were the same and from the first sensor.
With no sensors connected, all three readings were -127.
Since ESP voltage is 3.3V, sensors VCCs were connected to 3.3V (not parasite mode).
I used "temp" command in a timer. On each timer event only one sensor was read.