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

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