Re: [web-bluetooth] How to retrieve a device's name.

Do you know what 
[`BluetoothDevice.getName()`](https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getName())
 is doing that's really slow? Its documentation says it's cached, 
which shouldn't take much time, but if it's actually doing the 
characteristic read at that point, it could take a long time.

CSSv6 A.1.2.1 says the UA can assume that the advertised name is 
consistent with the `org.bluetooth.characteristic.gap.device_name` 
value, and I don't really want to have Web Bluetooth say how to 
resolve violations of the Bluetooth spec. We could explicitly say that
 the UA can retrieve `gap.device_name` at any time and use that to set
 the name field. BT4.2 3.C.12.1 only implies that successfully writing
 the value updates the value that would be read, but I'd like to 
behave as if that implication is true. I can mention that in the same 
place as the permission to read `gap.device_name`.

-- 
GitHub Notification of comment by jyasskin
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/299#issuecomment-249919226
 using your GitHub account

Received on Tuesday, 27 September 2016 16:28:41 UTC