Characteristic

Characteristic

Class that represents a GATT characteristic.

Constructor

new Characteristic(serviceInstanceId, uuid, value, properties, options)

Create a characteristic in the Bluetooth `Device's` GATT attribute table.
Source:
Parameters:
Name Type Description
serviceInstanceId string The `Service` instanceID this characteristic is to be added to.
uuid string A 128-bit or 16-bit unique identifier for this characteristic.
value array The initial value of this characteristic.
properties Object This GATT characteristic's metadata.
options Object This GATT characteristic's attribute's metadata.

Members

handle

Get the handle of this characteristic in the `Device's` GATT attribute table.
Source:

instanceId

Get the instanceId of this characteristic (since uuid is not enough to separate between characteristics).
Source:

serviceInstanceId

Get the instance Id of the GATT service that this characteristic belongs to.
Source: