• Hi,

    It's because the sensors on the Ruuvitag need to be initialised at power on - and basically your code is initialising them once (at upload).

    If you do:

    var Ruuvitag = require('ruuvitag');
    function onInit() {
      Ruuvitag.setEnvOn(true);
      setInterval(function() {
        console.log(Ruuvitag.getEnvData());
      }, 5000);
    }
    

    Then the onInit function gets called at startup, and initialises the Ruuvitag's sensor then.

    (also, just moved this to the 'other boards' section)

About

Avatar for Gordon @Gordon started