Classes
BluetoothRemoteGATTService
A GATT service provided by a remote Bluetooth LE device.
See
https://developer.mozilla.org/docs/Web/API/BluetoothRemoteGATTService
Accessors
device
get device(): BluetoothDevice
Returns
isPrimary
get isPrimary(): boolean
Returns
boolean
uuid
get uuid(): string
Returns
string
Methods
getCharacteristic()
getCharacteristic(characteristic): Promise<BluetoothRemoteGATTCharacteristic>
Parameters
| Parameter | Type |
|---|---|
characteristic | string | number |
Returns
Promise<BluetoothRemoteGATTCharacteristic>
See
https://developer.mozilla.org/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic
getCharacteristics()
getCharacteristics(characteristic?): Promise<BluetoothRemoteGATTCharacteristic[]>
Parameters
| Parameter | Type |
|---|---|
characteristic? | string | number |
Returns
Promise<BluetoothRemoteGATTCharacteristic[]>
See
https://developer.mozilla.org/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics