-
• #2
I see the device name with NRF.findDevice() and setConnect() sometimes but not always.
-
• #3
setConnect
?What does NRF Connect say about the micro:bit - it'd be interesting to see the 'RAW' data.
Theres definitely no 'name' in the data that Espruino is receiving there. So there are two options I guess:
- Micro:bit isn't transmitting very often and is also alternating advertising packets, so you need to make sure you scan for longer in order to get a packet that contains the name - I see you actually explicitly lowered the scan time to 1 sec, so raising that again might help.
- Micro:bit is only transmitting the name in a 'scan response' packet, so you need to start an 'active' scan with
active:true
: http://www.espruino.com/Reference#l_NRF_findDevices
- Micro:bit isn't transmitting very often and is also alternating advertising packets, so you need to make sure you scan for longer in order to get a packet that contains the name - I see you actually explicitly lowered the scan time to 1 sec, so raising that again might help.
-
• #4
Sorry for typo.. I mean setScan(). I understand why microbit is not appearing. Now I can see the device are coming in scan results.
-
• #5
Just so others know if they have this issue, how did you fix it?
-
• #6
Nothing, it started appearing automatically :)
I am scanning BLE peripheries using NRF.findDevices() /NRF.requestDevice() calls. None of the methods returning the local-name/ name of the discovered devices.
I am using latest BangleJS firmware V.08
But my device is advertising the name. I can see in noble.js scan output
I dont have a clue!! I want to show the name of the device in search so that I can select the device based on name.