• Hi gordon

    Thanks for your answer
    I don't follow you. I've tried also to use the

    Float32Array([Puck.light() * 100]).buffer
    

    to eliminate this question of value between 0 à 1 as an integer. But the value I get, in the ADV_IND does not change neither !!

    I've looked again at the http://www.espruino.com/Reference#l_NRF_­setAdvertising but do no see really what is wrong in my code.
    By the way I've not used the following code that is proposed in the puck.js API documentation because to me, the setInterval is redundant to the setAdvertising. The NRF.setAdvertising is already arming the advertising mechanism and their is no way to use a setInterval() to do the same again ...
    I Am wrong ?

    setInterval(function() {
      NRF.setAdvertising({
        0x1809 : [Math.round(E.getTemperature())]
      });
    }, 30000);
    

    Vpl

About

Avatar for user94148 @user94148 started