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.

ConstantValueDescription
QLowEnergyServiceData::ServiceTypePrimary0x2800The service is a primary service.
QLowEnergyServiceData::ServiceTypeSecondary0x2801The service is a secondary service. Secondary services are included by other services to implement some higher-level functionality.