Puck.js ADV_IND does not contain the sensor value #3025
Replies: 3 comments
-
|
Posted at 2019-07-22 by @gfwilliams I guess it's because you're just running the code once, and also you're trying to output a value between 0 and 1 as an integer? What about: The example code on http://www.espruino.com/Reference#l_NRF_setAdvertising shows how you could report the temperature using setInterval as well. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-23 by user94148 Hi gordon Thanks for your answer 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. Vpl |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-23 by @gfwilliams
This is your problem. Try the code I gave you or the code in the example, and see if it works. If you call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-07-22 by user94148
Hi
I'm testing the ADV_IND associated to a sensing service definition as follow
I've controlled that the service is well defined into the GATT
I receive ADV_IND perdiodically as expected
My problem is that the Service Data value does not change at all. Egal to 0 !!
I've check several things
The Puck.light() is Ok as the following code works fine
I've tried to replace the Puck.light() by
The value is not = 0 but does not change neither ..
Any idea ?
Other option to get this sensing value ?
Beta Was this translation helpful? Give feedback.
All reactions