does setAdvertising advertises data just once?
No, it keeps advertising every 350ms (or however long you specified in NRF.setAdvertising) forever after.
NRF.setAdvertising
when Android side code will get Puck bluetooth info, it will get access to this data too.
The Puck's name and the advertised data are sent in the same packet, so should arrive in Android together.
I'm not 100% sure if they're exposed that way, but it seems like it.
I get some data in array but not sure how to interpret it.
This might help? http://stackoverflow.com/questions/22016224/ble-obtain-uuid-encoded-in-advertising-packet?answertab=active#tab-top
@Gordon started
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.
No, it keeps advertising every 350ms (or however long you specified in
NRF.setAdvertising
) forever after.The Puck's name and the advertised data are sent in the same packet, so should arrive in Android together.
I'm not 100% sure if they're exposed that way, but it seems like it.
This might help? http://stackoverflow.com/questions/22016224/ble-obtain-uuid-encoded-in-advertising-packet?answertab=active#tab-top