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

Re: [web-bluetooth] Helper functions to read values

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 Jan 2016 09:15:05 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-169943028-1452244504-sysbot+gh@w3.org>
I've changed default `littleEndian` to `true` as advised. Thank you!

Regarding the default/removal of `byteOffset`, that made me realized 
we might want to implement 
`BluetoothGattCharacteristic.prototype.getFloat32Value` instead of 
`BluetoothGattCharacteristic.prototype.readFloat32Value` so that it 
returns a Float32 value of the stored cached read value.
What do you think of adding an option to `readValue()` to return 
cached value such as 
characteristic.readValue({cache: true})

GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at 
 using your GitHub account
Received on Friday, 8 January 2016 09:15:10 UTC

This archive was generated by hypermail 2.3.1 : Friday, 8 January 2016 09:15:10 UTC