Instance Properties
id
id: stringId of the characteristic assigned by Homey
Type
- string
name
name: stringThe name of the descriptor
Type
- string
type
type: stringThe type of the descriptor
Type
- string
uuid
uuid: stringUuid of the characteristic
Type
- string
value
value: Buffer|nullThe value of the descriptor. Note this is set to the last result of $BleDescriptor#read and is initially null
Type
- Buffer | null
Instance Methods
readValue
(async) readValue(): Promise.<Buffer>Read the value for this descriptor
Throws
Will throw an error if peripheral is not connected
Returns
Promise.<Buffer>
writeValue
(async) writeValue(data): Promise.<Buffer>Write a value to this descriptor
Parameters
Name | Type | Description |
---|---|---|
data
|
Buffer | The data that should be written |
Throws
Will throw an error if peripheral is not connected
Returns
Promise.<Buffer>