BluetoothLEService QML Type

Represents an individual service on a Bluetooth Low Energy device. More...

Import Statement: import ArcGIS.AppFramework.Devices 1.0

Properties

Signals

Methods

Detailed Description

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

Enumerations

ServiceState enumeration

This enum describes the state of the service object. Informs the ServiceState enum.

NameValue
BluetoothLEService.InvalidService0
BluetoothLEService.DiscoveryRequired1
BluetoothLEService.DiscoveringDetails2
BluetoothLEService.DetailsDiscovered3
BluetoothLEService.LocalService4

Property Documentation

[read-only] characteristics : CharacteristicListModel

Returns all characteristics associated with this BluetoothLEService instance.


[read-only] name : string

Returns the name of the service. This name can only be retrieved if the uuid property provides a well-known UUID.


[read-only] serviceState : ServiceState

The state of the service object. Informed by the ServiceState enum.


[read-only] uuid : string

Returns the UUID of the service.


Signal Documentation

characteristicValueChanged(QLowEnergyCharacteristic c, QByteArray value)

Note: The corresponding handler is onCharacteristicValueChanged.


serviceStateChanged(BluetoothLEService::ServiceState state)

Signal emitted when the service's state changes.

Note: The corresponding handler is onServiceStateChanged.


Method Documentation

discoverDetails()

Initiates the discovery of services, characteristics, and descriptors contained by the service.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.