@@ -5791,7 +5791,8 @@ bluetooth.SimulateCharacteristicResponseParameters = {
5791
5791
serviceUuid: bluetooth.BluetoothUuid,
5792
5792
characteristicUuid: bluetooth.BluetoothUuid,
5793
5793
type: "read" / "write" / "subscribe-to-notifications" / "unsubscribe-from-notifications",
5794
- code: uint
5794
+ code: uint,
5795
+ ? data: [ * uint ]
5795
5796
}
5796
5797
</pre>
5797
5798
@@ -5803,7 +5804,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateCharacteristicResponse.
5803
5804
5804
5805
<div class="example">
5805
5806
A [=local end=] could simulate a response of success (error code `0x00` according to <a>Error Response</a> )
5806
- for a characteristic read operation by sending the following message:
5807
+ with data for a characteristic read operation by sending the following message:
5807
5808
5808
5809
<pre highlight="json">
5809
5810
{
@@ -5814,7 +5815,8 @@ for a characteristic read operation by sending the following message:
5814
5815
"serviceUuid": "0000180d-0000-1000-8000-00805f9b34fb",
5815
5816
"characteristicUuid": "00002a21-0000-1000-8000-00805f9b34fb",
5816
5817
"type": "read",
5817
- "code": 0
5818
+ "code": 0,
5819
+ "data": [1, 2]
5818
5820
}
5819
5821
}
5820
5822
</pre>
@@ -5895,7 +5897,8 @@ bluetooth.SimulateDescriptorResponseParameters = {
5895
5897
characteristicUuid: bluetooth.BluetoothUuid,
5896
5898
descriptorUuid: bluetooth.BluetoothUuid,
5897
5899
type: "read" / "write",
5898
- code: uint
5900
+ code: uint,
5901
+ ? data: [ * uint ]
5899
5902
}
5900
5903
</pre>
5901
5904
@@ -5907,7 +5910,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateDescriptorResponse.
5907
5910
5908
5911
<div class="example">
5909
5912
A [=local end=] could simulate a response of success (error code `0x00` according to <a>Error Response</a> )
5910
- for a descriptor read operation by sending the following message:
5913
+ with data for a descriptor read operation by sending the following message:
5911
5914
5912
5915
<pre highlight="json">
5913
5916
{
@@ -5919,7 +5922,8 @@ for a descriptor read operation by sending the following message:
5919
5922
"characteristicUuid": "00002a21-0000-1000-8000-00805f9b34fb",
5920
5923
"descriptorUuid": "00002901-0000-1000-8000-00805f9b34fb",
5921
5924
"type": "read",
5922
- "code": 0
5925
+ "code": 0,
5926
+ "data": [1, 2]
5923
5927
}
5924
5928
}
5925
5929
</pre>
0 commit comments