W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > May 2016

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

From: Martijn Thé via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 May 2016 16:56:58 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-216931053-1462381018-sysbot+gh@w3.org>
> 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 

> I suspect the API shape will be writeValue(value, {type: 
Sounds good to me!

GitHub Notification of comment by martijnthe
Please view or discuss this issue at 
 using your GitHub account
Received on Wednesday, 4 May 2016 16:57:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 4 May 2016 16:57:01 UTC