devtools-protocol 0.0.1439209 → 0.0.1439962
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27922,6 +27922,53 @@
|
|
27922
27922
|
"$ref": "ScanRecord"
|
27923
27923
|
}
|
27924
27924
|
]
|
27925
|
+
},
|
27926
|
+
{
|
27927
|
+
"id": "CharacteristicProperties",
|
27928
|
+
"description": "Describes the properties of a characteristic. This follows Bluetooth Core\nSpecification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.",
|
27929
|
+
"type": "object",
|
27930
|
+
"properties": [
|
27931
|
+
{
|
27932
|
+
"name": "broadcast",
|
27933
|
+
"optional": true,
|
27934
|
+
"type": "boolean"
|
27935
|
+
},
|
27936
|
+
{
|
27937
|
+
"name": "read",
|
27938
|
+
"optional": true,
|
27939
|
+
"type": "boolean"
|
27940
|
+
},
|
27941
|
+
{
|
27942
|
+
"name": "writeWithoutResponse",
|
27943
|
+
"optional": true,
|
27944
|
+
"type": "boolean"
|
27945
|
+
},
|
27946
|
+
{
|
27947
|
+
"name": "write",
|
27948
|
+
"optional": true,
|
27949
|
+
"type": "boolean"
|
27950
|
+
},
|
27951
|
+
{
|
27952
|
+
"name": "notify",
|
27953
|
+
"optional": true,
|
27954
|
+
"type": "boolean"
|
27955
|
+
},
|
27956
|
+
{
|
27957
|
+
"name": "indicate",
|
27958
|
+
"optional": true,
|
27959
|
+
"type": "boolean"
|
27960
|
+
},
|
27961
|
+
{
|
27962
|
+
"name": "authenticatedSignedWrites",
|
27963
|
+
"optional": true,
|
27964
|
+
"type": "boolean"
|
27965
|
+
},
|
27966
|
+
{
|
27967
|
+
"name": "extendedProperties",
|
27968
|
+
"optional": true,
|
27969
|
+
"type": "boolean"
|
27970
|
+
}
|
27971
|
+
]
|
27925
27972
|
}
|
27926
27973
|
],
|
27927
27974
|
"commands": [
|
@@ -28014,7 +28061,7 @@
|
|
28014
28061
|
},
|
28015
28062
|
{
|
28016
28063
|
"name": "addService",
|
28017
|
-
"description": "Adds a service with |
|
28064
|
+
"description": "Adds a service with |serviceUuid| to the peripheral with |address|.",
|
28018
28065
|
"parameters": [
|
28019
28066
|
{
|
28020
28067
|
"name": "address",
|
@@ -28027,7 +28074,7 @@
|
|
28027
28074
|
],
|
28028
28075
|
"returns": [
|
28029
28076
|
{
|
28030
|
-
"name": "
|
28077
|
+
"name": "serviceId",
|
28031
28078
|
"description": "An identifier that uniquely represents this service.",
|
28032
28079
|
"type": "string"
|
28033
28080
|
}
|
@@ -28035,14 +28082,61 @@
|
|
28035
28082
|
},
|
28036
28083
|
{
|
28037
28084
|
"name": "removeService",
|
28038
|
-
"description": "Removes the service respresented by |
|
28085
|
+
"description": "Removes the service respresented by |serviceId| from the peripheral with\n|address|.",
|
28039
28086
|
"parameters": [
|
28040
28087
|
{
|
28041
28088
|
"name": "address",
|
28042
28089
|
"type": "string"
|
28043
28090
|
},
|
28044
28091
|
{
|
28045
|
-
"name": "
|
28092
|
+
"name": "serviceId",
|
28093
|
+
"type": "string"
|
28094
|
+
}
|
28095
|
+
]
|
28096
|
+
},
|
28097
|
+
{
|
28098
|
+
"name": "addCharacteristic",
|
28099
|
+
"description": "Adds a characteristic with |characteristicUuid| and |properties| to the\nservice represented by |serviceId| in the peripheral with |address|.",
|
28100
|
+
"parameters": [
|
28101
|
+
{
|
28102
|
+
"name": "address",
|
28103
|
+
"type": "string"
|
28104
|
+
},
|
28105
|
+
{
|
28106
|
+
"name": "serviceId",
|
28107
|
+
"type": "string"
|
28108
|
+
},
|
28109
|
+
{
|
28110
|
+
"name": "characteristicUuid",
|
28111
|
+
"type": "string"
|
28112
|
+
},
|
28113
|
+
{
|
28114
|
+
"name": "properties",
|
28115
|
+
"$ref": "CharacteristicProperties"
|
28116
|
+
}
|
28117
|
+
],
|
28118
|
+
"returns": [
|
28119
|
+
{
|
28120
|
+
"name": "characteristicId",
|
28121
|
+
"description": "An identifier that uniquely represents this characteristic.",
|
28122
|
+
"type": "string"
|
28123
|
+
}
|
28124
|
+
]
|
28125
|
+
},
|
28126
|
+
{
|
28127
|
+
"name": "removeCharacteristic",
|
28128
|
+
"description": "Removes the characteristic respresented by |characteristicId| from the\nservice respresented by |serviceId| in the peripheral with |address|.",
|
28129
|
+
"parameters": [
|
28130
|
+
{
|
28131
|
+
"name": "address",
|
28132
|
+
"type": "string"
|
28133
|
+
},
|
28134
|
+
{
|
28135
|
+
"name": "serviceId",
|
28136
|
+
"type": "string"
|
28137
|
+
},
|
28138
|
+
{
|
28139
|
+
"name": "characteristicId",
|
28046
28140
|
"type": "string"
|
28047
28141
|
}
|
28048
28142
|
]
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -13266,6 +13266,19 @@ experimental domain BluetoothEmulation
|
|
13266
13266
|
integer rssi
|
13267
13267
|
ScanRecord scanRecord
|
13268
13268
|
|
13269
|
+
# Describes the properties of a characteristic. This follows Bluetooth Core
|
13270
|
+
# Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
|
13271
|
+
type CharacteristicProperties extends object
|
13272
|
+
properties
|
13273
|
+
optional boolean broadcast
|
13274
|
+
optional boolean read
|
13275
|
+
optional boolean writeWithoutResponse
|
13276
|
+
optional boolean write
|
13277
|
+
optional boolean notify
|
13278
|
+
optional boolean indicate
|
13279
|
+
optional boolean authenticatedSignedWrites
|
13280
|
+
optional boolean extendedProperties
|
13281
|
+
|
13269
13282
|
# Enable the BluetoothEmulation domain.
|
13270
13283
|
command enable
|
13271
13284
|
parameters
|
@@ -13307,20 +13320,41 @@ experimental domain BluetoothEmulation
|
|
13307
13320
|
GATTOperationType type
|
13308
13321
|
integer code
|
13309
13322
|
|
13310
|
-
# Adds a service with |
|
13323
|
+
# Adds a service with |serviceUuid| to the peripheral with |address|.
|
13311
13324
|
command addService
|
13312
13325
|
parameters
|
13313
13326
|
string address
|
13314
13327
|
string serviceUuid
|
13315
13328
|
returns
|
13316
13329
|
# An identifier that uniquely represents this service.
|
13317
|
-
string
|
13330
|
+
string serviceId
|
13318
13331
|
|
13319
|
-
# Removes the service respresented by |
|
13332
|
+
# Removes the service respresented by |serviceId| from the peripheral with
|
13333
|
+
# |address|.
|
13320
13334
|
command removeService
|
13321
13335
|
parameters
|
13322
13336
|
string address
|
13323
|
-
string
|
13337
|
+
string serviceId
|
13338
|
+
|
13339
|
+
# Adds a characteristic with |characteristicUuid| and |properties| to the
|
13340
|
+
# service represented by |serviceId| in the peripheral with |address|.
|
13341
|
+
command addCharacteristic
|
13342
|
+
parameters
|
13343
|
+
string address
|
13344
|
+
string serviceId
|
13345
|
+
string characteristicUuid
|
13346
|
+
CharacteristicProperties properties
|
13347
|
+
returns
|
13348
|
+
# An identifier that uniquely represents this characteristic.
|
13349
|
+
string characteristicId
|
13350
|
+
|
13351
|
+
# Removes the characteristic respresented by |characteristicId| from the
|
13352
|
+
# service respresented by |serviceId| in the peripheral with |address|.
|
13353
|
+
command removeCharacteristic
|
13354
|
+
parameters
|
13355
|
+
string address
|
13356
|
+
string serviceId
|
13357
|
+
string characteristicId
|
13324
13358
|
|
13325
13359
|
# Event for when a GATT operation of |type| to the peripheral with |address|
|
13326
13360
|
# happened.
|
@@ -5312,19 +5312,36 @@ export namespace ProtocolMapping {
|
|
5312
5312
|
returnType: void;
|
5313
5313
|
};
|
5314
5314
|
/**
|
5315
|
-
* Adds a service with |
|
5315
|
+
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
5316
5316
|
*/
|
5317
5317
|
'BluetoothEmulation.addService': {
|
5318
5318
|
paramsType: [Protocol.BluetoothEmulation.AddServiceRequest];
|
5319
5319
|
returnType: Protocol.BluetoothEmulation.AddServiceResponse;
|
5320
5320
|
};
|
5321
5321
|
/**
|
5322
|
-
* Removes the service respresented by |
|
5322
|
+
* Removes the service respresented by |serviceId| from the peripheral with
|
5323
|
+
* |address|.
|
5323
5324
|
*/
|
5324
5325
|
'BluetoothEmulation.removeService': {
|
5325
5326
|
paramsType: [Protocol.BluetoothEmulation.RemoveServiceRequest];
|
5326
5327
|
returnType: void;
|
5327
5328
|
};
|
5329
|
+
/**
|
5330
|
+
* Adds a characteristic with |characteristicUuid| and |properties| to the
|
5331
|
+
* service represented by |serviceId| in the peripheral with |address|.
|
5332
|
+
*/
|
5333
|
+
'BluetoothEmulation.addCharacteristic': {
|
5334
|
+
paramsType: [Protocol.BluetoothEmulation.AddCharacteristicRequest];
|
5335
|
+
returnType: Protocol.BluetoothEmulation.AddCharacteristicResponse;
|
5336
|
+
};
|
5337
|
+
/**
|
5338
|
+
* Removes the characteristic respresented by |characteristicId| from the
|
5339
|
+
* service respresented by |serviceId| in the peripheral with |address|.
|
5340
|
+
*/
|
5341
|
+
'BluetoothEmulation.removeCharacteristic': {
|
5342
|
+
paramsType: [Protocol.BluetoothEmulation.RemoveCharacteristicRequest];
|
5343
|
+
returnType: void;
|
5344
|
+
};
|
5328
5345
|
}
|
5329
5346
|
}
|
5330
5347
|
|
@@ -4535,15 +4535,28 @@ export namespace ProtocolProxyApi {
|
|
4535
4535
|
simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<void>;
|
4536
4536
|
|
4537
4537
|
/**
|
4538
|
-
* Adds a service with |
|
4538
|
+
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
4539
4539
|
*/
|
4540
4540
|
addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<Protocol.BluetoothEmulation.AddServiceResponse>;
|
4541
4541
|
|
4542
4542
|
/**
|
4543
|
-
* Removes the service respresented by |
|
4543
|
+
* Removes the service respresented by |serviceId| from the peripheral with
|
4544
|
+
* |address|.
|
4544
4545
|
*/
|
4545
4546
|
removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<void>;
|
4546
4547
|
|
4548
|
+
/**
|
4549
|
+
* Adds a characteristic with |characteristicUuid| and |properties| to the
|
4550
|
+
* service represented by |serviceId| in the peripheral with |address|.
|
4551
|
+
*/
|
4552
|
+
addCharacteristic(params: Protocol.BluetoothEmulation.AddCharacteristicRequest): Promise<Protocol.BluetoothEmulation.AddCharacteristicResponse>;
|
4553
|
+
|
4554
|
+
/**
|
4555
|
+
* Removes the characteristic respresented by |characteristicId| from the
|
4556
|
+
* service respresented by |serviceId| in the peripheral with |address|.
|
4557
|
+
*/
|
4558
|
+
removeCharacteristic(params: Protocol.BluetoothEmulation.RemoveCharacteristicRequest): Promise<void>;
|
4559
|
+
|
4547
4560
|
/**
|
4548
4561
|
* Event for when a GATT operation of |type| to the peripheral with |address|
|
4549
4562
|
* happened.
|
@@ -4939,15 +4939,28 @@ export namespace ProtocolTestsProxyApi {
|
|
4939
4939
|
simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4940
4940
|
|
4941
4941
|
/**
|
4942
|
-
* Adds a service with |
|
4942
|
+
* Adds a service with |serviceUuid| to the peripheral with |address|.
|
4943
4943
|
*/
|
4944
4944
|
addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<{id: number, result: Protocol.BluetoothEmulation.AddServiceResponse, sessionId: string}>;
|
4945
4945
|
|
4946
4946
|
/**
|
4947
|
-
* Removes the service respresented by |
|
4947
|
+
* Removes the service respresented by |serviceId| from the peripheral with
|
4948
|
+
* |address|.
|
4948
4949
|
*/
|
4949
4950
|
removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4950
4951
|
|
4952
|
+
/**
|
4953
|
+
* Adds a characteristic with |characteristicUuid| and |properties| to the
|
4954
|
+
* service represented by |serviceId| in the peripheral with |address|.
|
4955
|
+
*/
|
4956
|
+
addCharacteristic(params: Protocol.BluetoothEmulation.AddCharacteristicRequest): Promise<{id: number, result: Protocol.BluetoothEmulation.AddCharacteristicResponse, sessionId: string}>;
|
4957
|
+
|
4958
|
+
/**
|
4959
|
+
* Removes the characteristic respresented by |characteristicId| from the
|
4960
|
+
* service respresented by |serviceId| in the peripheral with |address|.
|
4961
|
+
*/
|
4962
|
+
removeCharacteristic(params: Protocol.BluetoothEmulation.RemoveCharacteristicRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4963
|
+
|
4951
4964
|
/**
|
4952
4965
|
* Event for when a GATT operation of |type| to the peripheral with |address|
|
4953
4966
|
* happened.
|
package/types/protocol.d.ts
CHANGED
@@ -19536,6 +19536,21 @@ export namespace Protocol {
|
|
19536
19536
|
scanRecord: ScanRecord;
|
19537
19537
|
}
|
19538
19538
|
|
19539
|
+
/**
|
19540
|
+
* Describes the properties of a characteristic. This follows Bluetooth Core
|
19541
|
+
* Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
|
19542
|
+
*/
|
19543
|
+
export interface CharacteristicProperties {
|
19544
|
+
broadcast?: boolean;
|
19545
|
+
read?: boolean;
|
19546
|
+
writeWithoutResponse?: boolean;
|
19547
|
+
write?: boolean;
|
19548
|
+
notify?: boolean;
|
19549
|
+
indicate?: boolean;
|
19550
|
+
authenticatedSignedWrites?: boolean;
|
19551
|
+
extendedProperties?: boolean;
|
19552
|
+
}
|
19553
|
+
|
19539
19554
|
export interface EnableRequest {
|
19540
19555
|
/**
|
19541
19556
|
* State of the simulated central.
|
@@ -19580,12 +19595,32 @@ export namespace Protocol {
|
|
19580
19595
|
/**
|
19581
19596
|
* An identifier that uniquely represents this service.
|
19582
19597
|
*/
|
19583
|
-
|
19598
|
+
serviceId: string;
|
19584
19599
|
}
|
19585
19600
|
|
19586
19601
|
export interface RemoveServiceRequest {
|
19587
19602
|
address: string;
|
19588
|
-
|
19603
|
+
serviceId: string;
|
19604
|
+
}
|
19605
|
+
|
19606
|
+
export interface AddCharacteristicRequest {
|
19607
|
+
address: string;
|
19608
|
+
serviceId: string;
|
19609
|
+
characteristicUuid: string;
|
19610
|
+
properties: CharacteristicProperties;
|
19611
|
+
}
|
19612
|
+
|
19613
|
+
export interface AddCharacteristicResponse {
|
19614
|
+
/**
|
19615
|
+
* An identifier that uniquely represents this characteristic.
|
19616
|
+
*/
|
19617
|
+
characteristicId: string;
|
19618
|
+
}
|
19619
|
+
|
19620
|
+
export interface RemoveCharacteristicRequest {
|
19621
|
+
address: string;
|
19622
|
+
serviceId: string;
|
19623
|
+
characteristicId: string;
|
19589
19624
|
}
|
19590
19625
|
|
19591
19626
|
/**
|