Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
</pre>

Expand All @@ -5803,7 +5804,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateCharacteristicResponse.

<div class="example">
A [=local end=] could simulate a response of success (error code `0x00` according to <a>Error Response</a>)
for a characteristic read operation by sending the following message:
with data for a characteristic read operation by sending the following message:

<pre highlight="json">
{
Expand All @@ -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]
}
}
</pre>
Expand Down Expand Up @@ -5895,7 +5897,8 @@ bluetooth.SimulateDescriptorResponseParameters = {
characteristicUuid: bluetooth.BluetoothUuid,
descriptorUuid: bluetooth.BluetoothUuid,
type: "read" / "write",
code: uint
code: uint,
? data: [ * uint ]
}
</pre>

Expand All @@ -5907,7 +5910,7 @@ Issue: TODO: Finish the algorithm of bluetooth.simulateDescriptorResponse.

<div class="example">
A [=local end=] could simulate a response of success (error code `0x00` according to <a>Error Response</a>)
for a descriptor read operation by sending the following message:
with data for a descriptor read operation by sending the following message:

<pre highlight="json">
{
Expand All @@ -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]
}
}
</pre>
Expand Down