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 ?
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.
Hi gordon
Thanks for your answer
I don't follow you. I've tried also to use the
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 ?
Vpl