QLowEnergyServiceData Class
The QLowEnergyServiceData class is used to set up GATT service data. More...
| Header: | #include <QLowEnergyServiceData> |
| qmake: | QT += bluetooth |
| Since: | Qt 5.7 |
This class was introduced in Qt 5.7.
Public Types
| enum | ServiceType { ServiceTypePrimary, ServiceTypeSecondary } |
Detailed Description
An Object of this class provides a service to be added to a GATT server via QLowEnergyController::addService().
Member Type Documentation
enum QLowEnergyServiceData::ServiceType
The type of GATT service.
| Constant | Value | Description |
|---|---|---|
QLowEnergyServiceData::ServiceTypePrimary | 0x2800 | The service is a primary service. |
QLowEnergyServiceData::ServiceTypeSecondary | 0x2801 | The service is a secondary service. Secondary services are included by other services to implement some higher-level functionality. |