From 1531cd7b8b3bbc87749c877086775e8d9b25c7a3 Mon Sep 17 00:00:00 2001 From: "Alex N. Jose" Date: Mon, 7 Oct 2024 12:53:58 -0700 Subject: [PATCH] Change BlutoothManufacturerData.data to be tstr. --- index.bs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index f07076e..a356bae 100644 --- a/index.bs +++ b/index.bs @@ -4898,9 +4898,17 @@ referenced.
 bluetooth.BluetoothServiceUuid = text;
-bluetooth.BluetoothManufacturerData = { key: uint, data: bstr };
+bluetooth.BluetoothManufacturerData = { key: uint, data: tstr };
 
+
+
key
+
is the Company Identifier Code.
+ +
data
+
is the base64 encoded string representing the [=list=] of {{octet}}s.
+
+ ## The bluetooth module ## {#bluetooth-module} The bluetooth module contains commands for managing the remote end Bluetooth behavior. @@ -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", ], @@ -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 }