-
Fri 2019.07.19
Are the results similar, as in this working example that @user101905 just posted:
Just reviewed the example at:See the fourth code block there. The issue seems to be in the argument of the advertise property. The format is a Json object, with the argument represented as a string. In Line #13 of the snippet shown in #10 above, indicates a string representation, for base clarification to humans, of the desired hex value and not the string for valid Json syntax that is that numerical hex value.
Hi
For the Advertising issue I recap from the begining with the code such as we are on the same page:
Here is the code that I've loaded on my puck (latest version)
The puck.js documentation (https://www.espruino.com/Reference#l_NRFÂ_setServices) states that a connection is required to get the ADV_IND.
So I used the NRF connect Android App (latest version), activated my BLE sniffer and connected to the puck
On the trace I see the CONNECT_REQ but no ADV_IND with the temperature
What is wrong ? is there an error in the doc and the "advertise" option does not work this way ?
Thanks for your answer
Regards
Vpl