W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > December 2018

Re: [web-bluetooth] This makes all but the device and uuids attributes optional (#421)

From: Giovanni Ortuño via GitHub <sysbot+gh@w3.org>
Date: Thu, 13 Dec 2018 23:06:13 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-447153823-1544742372-sysbot+gh@w3.org>
Oh I see. I agree that they are indistinguishable. I was thinking that it's possible to have an empty map but the spec requires the fields to be 2 or more octets long so having an empty map would go against the spec. For example the following adv packet would be invalid:

| Value        | Notes           |
| ------------- |-------------|
| 0x02      | Length of this data |
| 0x01      | "Flags" Data Type Value |
| 0x01 | Flags Value (LE Limited Discoverable Flag set)     |
| 0x02 | Length of this data|
| 0xFF | "Manufacturer Data" Data Type Value |
| 0x05 | Length of this data |
| 0x09 | "Name" Data Type Value|
| 0x65 | 'f' |
| 0x6F | 'o' |
| 0x6F | 'o' |




-- 
GitHub Notification of comment by g-ortuno
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/pull/421#issuecomment-447153823 using your GitHub account
Received on Thursday, 13 December 2018 23:06:15 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 13 December 2018 23:06:15 UTC