Re: [web-bluetooth] optionalServices is not very clear

But if I have a device which only supports [A, B] which is optional, 
ie it doesn't support X and Y. Then it will be ignored right.

or I will have to add [A, B] as required services, ie

requestDevice([{services: [X, Y]}, {services: [A, B]}])

But then if I have a device support X, Y and B, then that device would
 not be able to use B, 

unless I duplicate it and add it as optional as well

requestDevice([{services: [X, Y]}, {services: [A, B]}], 
{optionalServices: [A, B]})

-- 
GitHub Notif of comment by kenchris
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/82#issuecomment-85105726

Received on Monday, 23 March 2015 17:22:02 UTC