Skip to content

Commit

Permalink
Change BlutoothManufacturerData.data to be tstr.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnj committed Oct 7, 2024
1 parent 5fca8d9 commit b86b6d4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4898,9 +4898,17 @@ referenced.

<pre class="cddl remote-cddl local-cddl">
bluetooth.BluetoothServiceUuid = text;
bluetooth.BluetoothManufacturerData = { key: uint, data: bstr };
bluetooth.BluetoothManufacturerData = { key: uint, data: tstr };
</pre>

<dl>
<dt><code>key</code></dt>
<dd>is the Company Identifier Code.</dd>

<dt><code>data</code></dt>
<dd>is the base64 encoded string representing the <a spec="infra">list</a> of {{octet}}s.</dd>
</dl>

## The bluetooth module ## {#bluetooth-module}

The bluetooth module contains commands for managing the remote end Bluetooth behavior.
Expand Down Expand Up @@ -5177,7 +5185,7 @@ A [=local end=] could simulate a preconnected peripheral by sending the followin
"context": "cxt-d03fdd81",
"address": "09:09:09:09:09:09",
"name": "Some Device",
"manufacturerData": [ { key: 17, data: [0, 255, 1, 1, 127] } ],
"manufacturerData": [ { key: 17, data: "AP8BAX8=" } ],
"knownServiceUuids": [
"12345678-1234-5678-9abc-def123456789",
],
Expand Down Expand Up @@ -5249,7 +5257,7 @@ A [=local end=] could simulate a device advertisement by sending the following m
"scanRecord": {
"name": "Heart Rate",
"uuids": ["0000180d-0000-1000-8000-00805f9b34fb"],
"manufacturerData": [ { key: 17, data: [0, 255, 1, 1, 127] } ],
"manufacturerData": [ { key: 17, data: "AP8BAX8=" } ],
"appearance": 1,
"txPower": 1
}
Expand Down

0 comments on commit b86b6d4

Please sign in to comment.