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: Thu, 07 Jan 2016 18:28:22 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-169764017-1452191301-sysbot+gh@w3.org>
Will do that tomorrow then. Thanks for the feedback.

On Thu, Jan 7, 2016, 7:15 PM Jeffrey Yasskin 
<notifications@github.com>
wrote:

> 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.
>
> —
> Reply to this email directly or view it on GitHub
> 
<https://github.com/WebBluetoothCG/web-bluetooth/issues/126#issuecomment-169760945>
> .
>


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

This archive was generated by hypermail 2.3.1 : Thursday, 7 January 2016 18:28:24 UTC