@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)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@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:
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)
Do you have an idea?