diff --git a/index.bs b/index.bs index 9978612..c9de935 100644 --- a/index.bs +++ b/index.bs @@ -5791,7 +5791,8 @@ bluetooth.SimulateCharacteristicResponseParameters = { serviceUuid: bluetooth.BluetoothUuid, characteristicUuid: bluetooth.BluetoothUuid, type: "read" / "write" / "subscribe-to-notifications" / "unsubscribe-from-notifications", - code: uint + code: uint, + ? data: [ * uint ] } @@ -5803,7 +5804,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateCharacteristicResponse.
A [=local end=] could simulate a response of success (error code `0x00` according to Error Response) -for a characteristic read operation by sending the following message: +with data for a characteristic read operation by sending the following message:
 {
@@ -5814,7 +5815,8 @@ for a characteristic read operation by sending the following message:
     "serviceUuid": "0000180d-0000-1000-8000-00805f9b34fb",
     "characteristicUuid": "00002a21-0000-1000-8000-00805f9b34fb",
     "type": "read",
-    "code": 0
+    "code": 0,
+    "data": [1, 2]
   }
 }
 
@@ -5895,7 +5897,8 @@ bluetooth.SimulateDescriptorResponseParameters = { characteristicUuid: bluetooth.BluetoothUuid, descriptorUuid: bluetooth.BluetoothUuid, type: "read" / "write", - code: uint + code: uint, + ? data: [ * uint ] } @@ -5907,7 +5910,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateDescriptorResponse.
A [=local end=] could simulate a response of success (error code `0x00` according to Error Response) -for a descriptor read operation by sending the following message: +with data for a descriptor read operation by sending the following message:
 {
@@ -5919,7 +5922,8 @@ for a descriptor read operation by sending the following message:
     "characteristicUuid": "00002a21-0000-1000-8000-00805f9b34fb",
     "descriptorUuid": "00002901-0000-1000-8000-00805f9b34fb",
     "type": "read",
-    "code": 0
+    "code": 0,
+    "data": [1, 2]
   }
 }