You are reading a single comment by @Wilberforce and its replies. Click here to read the full conversation.
  • works for me with DS18B20 devices - had to add for the esp8266:
    A1=NodeMCU.D1;

    or my case change to D5: ( wired to different pin)

    var t = require("https://raw.githubusercontent.com/espruino/EspruinoDocs/master/devices/DS18B20.js").connect(new OneWire(D5));
    t.getTemp(console.log);
    
    WARNING: the esp8266 port is in beta!
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    >echo(0);
    =undefined
    25.75
    > 
    

    I'll test the callback soon, and have some questions on how this will work multiple sensors.

    Can we start a conversion on all sensors, and then have a callback with all temps?

    I'm not sure if the current callback identifies the device, I'll set up some test cases.

About

Avatar for Wilberforce @Wilberforce started