Skip To Content

BluetoothLECharacteristic QML Type

(BETA) Stores information about, and writes data to, a Bluetooth Low Energy service characteristic. More...

Import Statement: import ArcGIS.AppFramework.Devices 1.0

Properties

Methods

Detailed Description

The BluetoothLECharacteristic component represents an individual characteristic of a Bluetooth Low Energy (LE) service. It can only be instantiated by BluetoothLEService. This component provides access to details of the individual characteristic, as well as any associated descriptors. It's also the only way to instantiate the BluetoothLEDescriptor component.

Property Documentation

[read-only] descriptors : DescriptorListModel

Returns the list of descriptors belonging to this characteristic. If descriptors are not available, or the characteristic has not been set, returns an empty list.


enableIndicate : bool

If true, permits indication of characteristic values. Default value is false.


enableNotify : bool

If true, permits notification of characteristic values. Default value is false.


[read-only] name : string

Returns the human-readable name of the characteristic. This name is based on the characteristic's standardized UUID.


[read-only] properties : QStringList

Returns the properties of the characteristic.


[read-only] uuid : string

Returns the UUID of the characteristic. Otherwise, returns false.


[read-only] valid : bool

Returns true if the BluetoothLECharacteristic object is valid. Otherwise, returns false.


[read-only] value : object

Returns the cached value of the characteristic.


Method Documentation

read()

Reads the value of the characteristic.


write(writeData)

Writes the given string as the value for the characteristic.

The writeData parameter

The data to write to the characteristic.