When you specify an array of numbers to advertise, that's the actual data that gets sent out, so even though you set the name it won't show.
You can see in my reply above though I do NRF.setAdvertising([ binary_data, {} ], { name:"Hello", ... })
The important thing there is the {} as it says to Espruino that you want to advertise two packets, interleaving them. One is the binary data, the other is what Espruino makes based on name - so in that case it should show up
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.
When you specify an array of numbers to advertise, that's the actual data that gets sent out, so even though you set the name it won't show.
You can see in my reply above though I do
NRF.setAdvertising([ binary_data, {} ], { name:"Hello", ... })
The important thing there is the
{}
as it says to Espruino that you want to advertise two packets, interleaving them. One is the binary data, the other is what Espruino makes based onname
- so in that case it should show up