Device name availability inconsistencies on macOS
gmallios opened this issue · comments
Describe the bug
Im writing a program that discovers devices and presents them to the user in form of a device name list.
Most of the discovered devices do not have a name available at the end of a scan, which I'm also able to reproduce using the
discover_adapters_peripherals
example. The scan duration does not seem to be affecting the results.
Expected behavior
The device name availability should be the same as per macOS's Settings -> Bluetooth panel.
Actual behavior
Device names are inconsistently available whereas the names are always available in Settings -> Bluetooth.
Additional context
After implementing peripheralDidUpdateName
for the delegate and connecting to a peripheral upon discovering it, the correct name is resolved.