NRF.setAdvertising 'name' and 'iBeacon' #4243
Replies: 1 comment
-
Posted at 2023-05-24 by @gfwilliams It's a bit counter-intuitive, but you need the
Posted at 2023-05-24 by user149221 Thank you! Posted at 2023-10-30 by DanDyse Excuse me for waking this up ... I would like to name my Puck, but this doesn't seem to work:
What's wrong with it? Posted at 2023-10-30 by DanDyse Ah, I see it sometimes takes very long for scanning apps to recognise the change of the name. The IDE is fastest mostly. Even when I restart Puck (battery out). Is that an issue of the scanning app (device) or am I missing something? Posted at 2023-11-02 by @gfwilliams 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 The important thing there is the Posted at 2023-11-02 by DanDyse Thank you for the hint ... so I have changed it to
Although there is no error or message the device seems to fall back so I can connect via IDE ... it does not advertise like I want it to. I am a little out of ideas now. Posted at 2023-11-02 by DanDyse Aha – I think I have found a solution, at least it looks better now. I set the name first and adv after it. They don't seem to overwrite eachother:
Posted at 2023-11-03 by @gfwilliams The issue was you'd got the brackets a bit wrong, You had:
But you needed:
Or probably more readable, you just want to do:
Posted at 2023-11-03 by DanDyse Yes, my twice-setting of advertising didn't work, somehow it looked like it would. Posted at 2023-11-03 by DanDyse Thank you Gordon, looks good now. Some device scanner just don't seem to update their data correctly, even if restarted. "nRF Connect" works best. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-05-24 by user149221
I'm having trouble advertising a custom name and iBeacon information on my puck.js. do you have any suggestions for me? the iBeacon information works but the name does not change...
Beta Was this translation helpful? Give feedback.
All reactions