-
• #2
Do you mean specifying the name itself? You can do that with
NRF.setAdvertising({},{name:"foo"})
I'm not sure if that's actually how you'd go about changing the appearance? Either way it looks like you need a 16 bit value, so instead of
[961]
you'll need[0x03,0xC1]
(I think - the endianness could be different). -
• #3
@Gordon no, about the icon that shows on the other devices – https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.gap.appearance.xml
from what I see at https://github.com/espruino/Espruino/blob/4cf66cca663024473005b234d238ad106b6b6343/targets/nrf5x/bluetooth.c#L1475 it is disabled.
-
• #4
How are you checking it? Using the nRF connect app?
Even though Puck.js doesn't include the appearance, it shouldn't overwrite it if you put it in explicitly.
The other option you have is to manually specify the entire advertising data payload - if you figure out what you need to send you can just do
NRF.setAdvertising([.......])
with the binary data. -
• #5
nRF connect/iOS & Android and OS X. will try to send raw bytes to see if it works ;)
ps. cool nodeconfeu badge !
anyone managed to set the appearance – service: 0x1800 characteristic: 0x2A01 ?
it gets overridden by default Puck.JS (name and appearance in 0x1800).