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

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

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Thu, 07 Jan 2016 18:15:52 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-169760945-1452190549-sysbot+gh@w3.org>
Yes, that's great. I think I'd make 2 changes: I'd either default the 
`byteOffset` to `0` or omit it entirely, since if you're reading 
multiple items from a single characteristic, you probably want to only
 call `readValue` once. And I'd default `littleEndian` to `true`, 
since nearly all Bluetooth values are little-endian, contrary to 
`DataView`'s default.

-- 
GitHub Notification of comment by jyasskin
Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/126#issuecomment-169760945
 using your GitHub account
Received on Thursday, 7 January 2016 18:15:54 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 7 January 2016 18:15:54 UTC