Getting device names ... fails? #4321
Replies: 1 comment
-
Posted at 2024-02-14 by @fanoush for me the namePrefix works, in one place you have Posted at 2024-02-14 by DanDyse Thanks, makes no difference unfortunately ... this is what the list looks like (filter set to 4C):
How come there is no "name" at all? Posted at 2024-02-14 by @fanoush that looks like correct output for Posted at 2024-06-06 by user158306 Just wondering if a solution was found for this? I am in the same situation. I have a Puck.js that I am trying to connect to an Adafruit Feather. I can see a lot of devices on a scan - but can not tell which is which based on the returned data from Puck (which looks like the screen shot above of the original poster). Were you able to filter to find the device? Posted at 2024-06-07 by DanDyse I have given up on trying this, simply wasn't reliable enough. Posted at 2024-06-07 by @fanoush since 2.22 there are scan window and interval parameters, default is 100 for both Posted at 2024-06-07 by @gfwilliams Maybe if you can find the Feather on the nRF Connect app, then take a screenshot we can find a way to detect it. Potentially it may advertise the service UUID for Nordic UART or something like that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-02-13 by DanDyse
Hi again,
I want my puck to wait a little longer before going into code that changes its name and advertising behaviour. But want it to wait only if a certain device is around (e.g. my iPhone).
So I tried to do a scan or a request ... but this never returns ANY names of the devices, even with higher timeouts and "active" being true?!
"namePrefix" does not make a difference when using findDevices – it just lists all, regardless of what I set. "namePrefix" does the opposite when using requestDevice – it never finds any, even if I just set one letter. Yes, I can see plenty of devices around using nRF-Connect including the ones I want the Puck to find.
This is what I have tried:
--> puts out a rather large list, but without names
--> shows the same full list without names, although only two devices would fit.
--> times out without any result
I have tried setting timeout to 10 or even 30 seconds – no difference. I must be doing something fundamentally wrong. Please advise.
Beta Was this translation helpful? Give feedback.
All reactions