Re: [web-bluetooth] Missing API for GATT Write w/o Response

> Do you have devices that allow both Write with Response and Write 
w/o Response on the same characteristic?

Is possible and allowed by the BT spec.
I'm sure someone will come up with a good use case for having both 
enabled for the same characteristic.

> What behavior do you want when the requested write type isn't among 
the characteristic's properties?
I'd say if `with-response` was explicitly specified, error out the way
 you would do normally when an operation is attempted that isn't 
allowed. If it's not explicitly specified, fallback to write with 
response?

> I suspect the API shape will be writeValue(value, {type: 
'without-response'})
Sounds good to me!

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

Received on Wednesday, 4 May 2016 16:57:01 UTC