Represents an individual service on a Bluetooth Low Energy device. More...
Import Statement: | import ArcGIS.AppFramework.Devices 1.0 |
Properties
- characteristics : CharacteristicListModel
- name : string
- serviceState : ServiceState
- uuid : string
Signals
- characteristicValueChanged(QLowEnergyCharacteristic c, QByteArray value)
- serviceStateChanged(BluetoothLEService::ServiceState state)
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.
Name | Value |
---|---|
BluetoothLEService.InvalidService | 0 |
BluetoothLEService.DiscoveryRequired | 1 |
BluetoothLEService.DiscoveringDetails | 2 |
BluetoothLEService.DetailsDiscovered | 3 |
BluetoothLEService.LocalService | 4 |
Property Documentation
[read-only] characteristics : CharacteristicListModel |
Returns all characteristics associated with this BluetoothLEService instance.
Returns the name of the service. This name can only be retrieved if the uuid property provides a well-known UUID.
The state of the service object. Informed by the ServiceState enum.
Signal Documentation
Note: The corresponding handler is onCharacteristicValueChanged
.
Signal emitted when the service's state changes.
Note: The corresponding handler is onServiceStateChanged
.
Method Documentation
Initiates the discovery of services, characteristics, and descriptors contained by the service.