BleDescriptor

This class is a representation of a BLE Advertisement for a BlePeripheral in Homey. This class must not be initiated by the developer, but retrieved by calling BleCharacteristic#discoverDescriptors.

Table of Contents

Methods

(async) readValue() → {Promise.<Buffer>}

Read the value for this descriptor

Returns:
Type:
Promise.<Buffer>

(async) writeValue(data) → {Promise.<Buffer>}

Write a value to this descriptor

Parameters:
Name Type Description
data Buffer

The data that should be written

Returns:
Type:
Promise.<Buffer>