[web-bluetooth] Don't read Extended Properties until necessary

scheib has just created a new issue for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Don't read Extended Properties until necessary ==
For each characteristic the spec currently checks the Extended 
Properties bit of the characteristic properties and if set requires 
the Characteristic Extended Properties descriptor to be read. This 
will impose a delay before the characteristic can be returned at all, 
because access to the properties is synchronous. Thus before each 
characteristic is returned an additional descriptor read would be 
required when extended properties is set. Unless  there is a need to 
have this information pre-fetched I suggest Web Bluetooth not include 
reliableWrite and writableAuxiliaries in the 
BluetoothCharacteristicProperties interface and instead allow 
applications to read the descriptor explicitly as needed.

See https://github.com/WebBluetoothCG/web-bluetooth/issues/185

Received on Friday, 30 October 2015 17:49:23 UTC