You are reading a single comment by @possmann and its replies. Click here to read the full conversation.
  • @gordon: i have a small question. the alert system work's but there is one issue i did not expect.

    Currently i use this small test code for the DS18B20 sensor:

    var ow = new OneWire(B8);
    var sensor = require("DS18B20").connect(ow);
    sensor.setAlarm(25, 30);
    
    setInterval(function() {
      console.log(sensor.getTemp(), sensor.searchAlarm());
    }, 1000);
    

    The alert for 30° works fine. If the value is more than 30°, the alert starts. But the low value is works strange. If the value is under 26°, the alert starts. I expected, if the value is lower than 25.

    Here the debug output (i delete all redundant lines)

    26.3125 []
    26.25 []
    26.1875 []
    26.125 []
    26.0625 []
    26 []
    25.9375 [
      "288728080600007a"
    ]
    

    Do you have an idea?

About

Avatar for possmann @possmann started