• Nevermind, I've found the working one.
    To test everything I've tried to read from a DS18B20 sensor but getTemp() method always return null so I have to manually assign sCode expando to get it work properly:

    var ow = new OneWire(B1);
    var sensor = require("DS18B20").connect(ow);
    sensor.sCode = sensor.bus.search()[0];
    sensor.getTemp();
    =24.5625
    
About

Avatar for Serge_K @Serge_K started