QBluetoothUuid Class

The QBluetoothUuid class generates a UUID for each Bluetooth service. More...

Header: #include <QBluetoothUuid>
qmake: QT += bluetooth
Since: Qt 5.2
Inherits: QUuid

Public Types

enum CharacteristicType { AerobicHeartRateLowerLimit, AerobicHeartRateUpperLimit, AerobicThreshold, Age, ..., WindChill }
enum DescriptorType { CharacteristicExtendedProperties, CharacteristicUserDescription, ClientCharacteristicConfiguration, ServerCharacteristicConfiguration, ..., UnknownDescriptorType }
enum ProtocolUuid { Sdp, Udp, Rfcomm, Tcp, ..., L2cap }
enum ServiceClassUuid { ServiceDiscoveryServer, BrowseGroupDescriptor, PublicBrowseGroup, SerialPort, ..., ContinuousGlucoseMonitoring }

Public Functions

QBluetoothUuid()
QBluetoothUuid(QBluetoothUuid::ProtocolUuid uuid)
QBluetoothUuid(QBluetoothUuid::ServiceClassUuid uuid)
QBluetoothUuid(QBluetoothUuid::CharacteristicType uuid)
QBluetoothUuid(QBluetoothUuid::DescriptorType uuid)
QBluetoothUuid(quint16 uuid)
QBluetoothUuid(quint32 uuid)
QBluetoothUuid(quint128 uuid)
QBluetoothUuid(const QString &uuid)
QBluetoothUuid(const QBluetoothUuid &uuid)
QBluetoothUuid(const QUuid &uuid)
~QBluetoothUuid()
int minimumSize() const
quint16 toUInt16(bool *ok = nullptr) const
quint32 toUInt32(bool *ok = nullptr) const
quint128 toUInt128() const
bool operator!=(const QBluetoothUuid &other) const
QBluetoothUuid &operator=(const QBluetoothUuid &other)
bool operator==(const QBluetoothUuid &other) const
  • 18 public functions inherited from QUuid

Static Public Members

QString characteristicToString(QBluetoothUuid::CharacteristicType uuid)
QString descriptorToString(QBluetoothUuid::DescriptorType uuid)
QString protocolToString(QBluetoothUuid::ProtocolUuid uuid)
QString serviceClassToString(QBluetoothUuid::ServiceClassUuid uuid)
  • 10 static public members inherited from QUuid

Detailed Description

The QBluetoothUuid class generates a UUID for each Bluetooth service.

Member Type Documentation

enum QBluetoothUuid::CharacteristicType

This enum is a convienience type for Bluetooth low energy service characteristics class UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary. The detailed type descriptions can be found on bluetooth.org.

ConstantValueDescription
QBluetoothUuid::AerobicHeartRateLowerLimit0x2a7eThe lower limit of the heart rate where the user improves his endurance while exercising.
QBluetoothUuid::AerobicHeartRateUpperLimit0x2a84The upper limit of the heart rate where the user improves his endurance while exercising.
QBluetoothUuid::AerobicThreshold0x2a7fThis characteristic states the first metabolic threshold.
QBluetoothUuid::Age0x2a80This characteristic states the age of the user.
QBluetoothUuid::AnaerobicHeartRateLowerLimit0x2a81The lower limit of the heart rate where the user enhances his anaerobic tolerance while exercising.
QBluetoothUuid::AnaerobicHeartRateUpperLimit0x2a82The upper limit of the heart rate where the user enhances his anaerobic tolerance while exercising.
QBluetoothUuid::AnaerobicThreshold0x2a83This characteristic states the second metabolic threshold.
QBluetoothUuid::AlertCategoryID0x2a43Categories of alerts/messages.
QBluetoothUuid::AlertCategoryIDBitMask0x2a42Categories of alerts/messages.
QBluetoothUuid::AlertLevel0x2a06The level of an alert a device is to sound. If this level is changed while the alert is being sounded, the new level should take effect.
QBluetoothUuid::AlertNotificationControlPoint0x2a44Control point of the Alert Notification server. Client can write the command here to request the several functions toward the server.
QBluetoothUuid::AlertStatus0x2a3fThe Alert Status characteristic defines the Status of alert.
QBluetoothUuid::ApparentWindDirection0x2a73The characteristic exposes the apparent wind direction. The apparent wind is experienced by an observer in motion. This characteristic states the direction of the wind with an angle measured clockwise relative to the observers heading.
QBluetoothUuid::ApparentWindSpeed0x2a72The characteristic exposes the apparent wind speed in meters per second. The apparent wind is experienced by an observer in motion.
QBluetoothUuid::Appearance0x2a01The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits).
QBluetoothUuid::BarometricPressureTrend0x2aa3This characteristic exposes the trend the barometric pressure is taking.
QBluetoothUuid::BatteryLevel0x2a19The current charge level of a battery. 100% represents fully charged while 0% represents fully discharged.
QBluetoothUuid::BloodPressureFeature0x2a49The Blood Pressure Feature characteristic is used to describe the supported features of the Blood Pressure Sensor.
QBluetoothUuid::BloodPressureMeasurement0x2a35The Blood Pressure Measurement characteristic is a variable length structure containing a Flags field, a Blood Pressure Measurement Compound Value field, and contains additional fields such as Time Stamp, Pulse Rate and User ID as determined by the contents of the Flags field.
QBluetoothUuid::BodyCompositionFeature0x2a9bThis characteristic describes the available features in the BodyCompositionMeasurement characteristic.
QBluetoothUuid::BodyCompositionMeasurement0x2a9cThis characteristic describes the body composition such as muscle percentage or the body water mass.
QBluetoothUuid::BodySensorLocation0x2a38The Body Sensor Location characteristic describes the location of a sensor on the body (e.g.: chest, finger or hand).
QBluetoothUuid::BootKeyboardInputReport0x2a22The Boot Keyboard Input Report characteristic is used to transfer fixed format and length Input Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot keyboard.
QBluetoothUuid::BootKeyboardOutputReport0x2a32The Boot Keyboard Output Report characteristic is used to transfer fixed format and length Output Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot keyboard.
QBluetoothUuid::BootMouseInputReport0x2a33The Boot Mouse Input Report characteristic is used to transfer fixed format and length Input Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot mouse.
QBluetoothUuid::CSCFeature0x2a5cThe CSC (Cycling Speed and Cadence) Feature characteristic is used to describe the supported features of the Server.
QBluetoothUuid::CSCMeasurement0x2a5bThe CSC Measurement characteristic (CSC refers to Cycling Speed and Cadence) is a variable length structure containing a Flags field and, based on the contents of the Flags field, may contain one or more additional fields as shown in the tables below.
QBluetoothUuid::CurrentTime0x2a2bThe Current Time characteristic shows the same information as the ExactTime256 characteristic and information on timezone, DST and the method of update employed.
QBluetoothUuid::CyclingPowerControlPoint0x2a66The Cycling Power Control Point characteristic is used to request a specific function to be executed on the receiving device.
QBluetoothUuid::CyclingPowerFeature0x2a65The CP Feature characteristic is used to report a list of features supported by the device.
QBluetoothUuid::CyclingPowerMeasurement0x2a63The Cycling Power Measurement characteristic is a variable length structure containing a Flags field, an Instantaneous Power field and, based on the contents of the Flags field, may contain one or more additional fields as shown in the table below.
QBluetoothUuid::CyclingPowerVector0x2a64The Cycling Power Vector characteristic is a variable length structure containing a Flags fieldand based on the contents of the Flags field, may contain one or more additional fields as shown in the table below.
QBluetoothUuid::DatabaseChangeIncrement0x2a99 
QBluetoothUuid::DateOfBirth0x2a85This characteristic states the user's date of birth.
QBluetoothUuid::DateOfThresholdAssessment0x2a86 
QBluetoothUuid::DateTime0x2a08The Date Time characteristic is used to represent time.
QBluetoothUuid::DayDateTime0x2a0aThe Day Date Time characteristic presents the date, time and day of the week.
QBluetoothUuid::DayOfWeek0x2a09The Day of Week characteristic describes the day of the week (Monday - Sunday).
QBluetoothUuid::DescriptorValueChanged0x2a7dThis characteristic is related to the Environmental Sensing Service.
QBluetoothUuid::DeviceName0x2a00The Device Name characteristic contains the name of the device.
QBluetoothUuid::DewPoint0x2a7bThis characteristic states the dew point in degree Celsius.
QBluetoothUuid::DSTOffset0x2a0dThe DST Offset characteristic describes the offset employed by daylight-saving time.
QBluetoothUuid::Elevation0x2a6cThe Elevation characteristic states the elevation above/below sea level.
QBluetoothUuid::EmailAddress0x2a87This characteristic states the email of the user.
QBluetoothUuid::ExactTime2560x2a0cThe Exact Time 256 characteristic describes the data, day and time with an accuracy of 1/256th of a second.
QBluetoothUuid::FatBurnHeartRateLowerLimit0x2a88The lower limit of the heart rate where the user maximizes the fat burn while exercising.
QBluetoothUuid::FatBurnHeartRateUpperLimit0x2a89The upper limit of the heart rate where the user maximizes the fat burn while exercising.
QBluetoothUuid::FirmwareRevisionString0x2a26The value of this characteristic is a UTF-8 string representing the firmware revision for the firmware within the device.
QBluetoothUuid::FirstName0x2a8aThis characteristic exposes the user's first name.
QBluetoothUuid::FiveZoneHeartRateLimits0x2a8bThis characteristic contains the limits between the heart rate zones for the 5-zone heart rate definition.
QBluetoothUuid::Gender0x2a8cThis characteristic states the user's gender.
QBluetoothUuid::GlucoseFeature0x2a51The Glucose Feature characteristic is used to describe the supported features of the Server. When read, the Glucose Feature characteristic returns a value that is used by a Client to determine the supported features of the Server.
QBluetoothUuid::GlucoseMeasurement0x2a18The Glucose Measurement characteristic is a variable length structure containing a Flags field, a Sequence Number field, a Base Time field and, based upon the contents of the Flags field, may contain a Time Offset field, Glucose Concentration field, Type-Sample Location field and a Sensor Status Annunciation field.
QBluetoothUuid::GlucoseMeasurementContext0x2a34 
QBluetoothUuid::GustFactor0x2a74The characteristic states a factor of wind speed increase between average wind speed in maximum gust speed.
QBluetoothUuid::HardwareRevisionString0x2a27The value of this characteristic is a UTF-8 string representing the hardware revision for the hardware within the device.
QBluetoothUuid::MaximumRecommendedHeartRate0x2a91This characteristic exposes the maximum recommended heart rate that limits exertion.
QBluetoothUuid::HeartRateControlPoint0x2a39 
QBluetoothUuid::HeartRateMax0x2a8dThis characteristic states the maximum heart rate a user can reach in beats per minute.
QBluetoothUuid::HeartRateMeasurement0x2a37 
QBluetoothUuid::HeatIndex0x2a7aThis characteristic provides a heat index in degree Celsius.
QBluetoothUuid::Height0x2a8eThis characteristic states the user's height.
QBluetoothUuid::HIDControlPoint0x2a4cThe HID Control Point characteristic is a control-point attribute that defines the HID Commands when written.
QBluetoothUuid::HIDInformation0x2a4aThe HID Information Characteristic returns the HID attributes when read.
QBluetoothUuid::HipCircumference0x2a8fThis characteristic states the user's hip circumference in meters.
QBluetoothUuid::Humidity0x2a6fThe characteristic states the humidity in percent.
QBluetoothUuid::IEEE1107320601RegulatoryCertificationDataList0x2a2aThe value of the characteristic is an opaque structure listing various regulatory and/or certification compliance items to which the device claims adherence.
QBluetoothUuid::IntermediateCuffPressure0x2a36This characteristic has the same format as the Blood Pressure Measurement characteristic.
QBluetoothUuid::IntermediateTemperature0x2a1eThe Intermediate Temperature characteristic has the same format as the Temperature Measurement characteristic.
QBluetoothUuid::Irradiance0x2a77This characteristic states the power of electromagnetic radiation in watt per square meter.
QBluetoothUuid::Language0x2aa2This characteristic contains the language definition based on ISO639-1.
QBluetoothUuid::LastName0x2a90This characteristic states the user's last name.
QBluetoothUuid::LNControlPoint0x2a6bThe LN Control Point characteristic is used to request a specific function to be executed on the receiving device.
QBluetoothUuid::LNFeature0x2a6aThe LN Feature characteristic is used to report a list of features supported by the device.
QBluetoothUuid::LocalTimeInformation0x2a0f 
QBluetoothUuid::LocationAndSpeed0x2a67The Location and Speed characteristic is a variable length structure containing a Flags field and, based on the contents of the Flags field, may contain a combination of data fields.
QBluetoothUuid::MagneticDeclination0x2a2cThe characteristic contains the angle on the horizontal plane between the direction of the (Geographic) True North and the Magnetic North, measured clockwise from True North to Magnetic North.
QBluetoothUuid::MagneticFluxDensity2D0x2aa0This characteristic states the magnetic flux density on an x and y axis.
QBluetoothUuid::MagneticFluxDensity3D0x2aa1This characteristic states the magnetic flux density on an x, y and z axis.
QBluetoothUuid::ManufacturerNameString0x2a29The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device.
QBluetoothUuid::MeasurementInterval0x2a21The Measurement Interval characteristic defines the time between measurements.
QBluetoothUuid::ModelNumberString0x2a24The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor.
QBluetoothUuid::Navigation0x2a68The Navigation characteristic is a variable length structure containing a Flags field, a Bearing field, a Heading field and, based on the contents of the Flags field.
QBluetoothUuid::NewAlert0x2a46This characteristic defines the category of the alert and how many new alerts of that category have occurred in the server device.
QBluetoothUuid::PeripheralPreferredConnectionParameters0x2a04 
QBluetoothUuid::PeripheralPrivacyFlag0x2a02 
QBluetoothUuid::PnPID0x2a50The PnP_ID characteristic returns its value when read using the GATT Characteristic Value Read procedure.
QBluetoothUuid::PollenConcentration0x2a75The characteristic exposes the pollen concentration count per cubic meter.
QBluetoothUuid::PositionQuality0x2a69The Position Quality characteristic is a variable length structure containing a Flags field and at least one of the optional data.
QBluetoothUuid::Pressure0x2a6dThe Pressure characteristic states the value of a pressure sensor.
QBluetoothUuid::ProtocolMode0x2a4eThe Protocol Mode characteristic is used to expose the current protocol mode of the HID Service with which it is associated, or to set the desired protocol mode of the HID Service.
QBluetoothUuid::Rainfall0x2a78This characteristic exposes the rainfall in meters.
QBluetoothUuid::ReconnectionAddress0x2a03The Information included in this page is informative. The normative descriptions are contained in the applicable specification.
QBluetoothUuid::RecordAccessControlPoint0x2a52This control point is used with a service to provide basic management functionality for the Glucose Sensor patient record database.
QBluetoothUuid::ReferenceTimeInformation0x2a14 
QBluetoothUuid::Report0x2a4dThe Report characteristic is used to exchange data between a HID Device and a HID Host.
QBluetoothUuid::ReportMap0x2a4bOnly a single instance of this characteristic exists as part of a HID Service.
QBluetoothUuid::RestingHeartRate0x2a92This characteristic exposes the lowest heart rate a user can reach.
QBluetoothUuid::RingerControlPoint0x2a40The Ringer Control Point characteristic defines the Control Point of Ringer.
QBluetoothUuid::RingerSetting0x2a41The Ringer Setting characteristic defines the Setting of the Ringer.
QBluetoothUuid::RSCFeature0x2a54The RSC (Running Speed and Cadence) Feature characteristic is used to describe the supported features of the Server.
QBluetoothUuid::RSCMeasurement0x2a53RSC refers to Running Speed and Cadence.
QBluetoothUuid::SCControlPoint0x2a55The SC Control Point characteristic is used to request a specific function to be executed on the receiving device.
QBluetoothUuid::ScanIntervalWindow0x2a4fThe Scan Interval Window characteristic is used to store the scan parameters of the GATT Client.
QBluetoothUuid::ScanRefresh0x2a31The Scan Refresh characteristic is used to notify the Client that the Server requires the Scan Interval Window characteristic to be written with the latest values upon notification.
QBluetoothUuid::SensorLocation0x2a5dThe Sensor Location characteristic is used to expose the location of the sensor.
QBluetoothUuid::SerialNumberString0x2a25The value of this characteristic is a variable-length UTF-8 string representing the serial number for a particular instance of the device.
QBluetoothUuid::ServiceChanged0x2a05 
QBluetoothUuid::SoftwareRevisionString0x2a28The value of this characteristic is a UTF-8 string representing the software revision for the software within the device.
QBluetoothUuid::SportTypeForAerobicAnaerobicThresholds0x2a93This characteristic is used to preset the various Aerobic and Anaerobic threshold characteristics based on the to-be-performed sport type.
QBluetoothUuid::SupportedNewAlertCategory0x2a47Category that the server supports for new alert.
QBluetoothUuid::SupportedUnreadAlertCategory0x2a48Category that the server supports for unread alert.
QBluetoothUuid::SystemID0x2a23If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE.
QBluetoothUuid::Temperature0x2a6eThe value of this characteristic states the temperature in degree Celsius.
QBluetoothUuid::TemperatureMeasurement0x2a1cThe Temperature Measurement characteristic is a variable length structure containing a Flags field, a Temperature Measurement Value field and, based upon the contents of the Flags field, optionally a Time Stamp field and/or a Temperature Type field.
QBluetoothUuid::TemperatureType0x2a1dThe Temperature Type characteristic is an enumeration that indicates where the temperature was measured.
QBluetoothUuid::ThreeZoneHeartRateLimits0x2a94This characteristic contains the limits between the heart rate zones for the 3-zone heart rate definition.
QBluetoothUuid::TimeAccuracy0x2a12 
QBluetoothUuid::TimeSource0x2a13 
QBluetoothUuid::TimeUpdateControlPoint0x2a16 
QBluetoothUuid::TimeUpdateState0x2a17 
QBluetoothUuid::TimeWithDST0x2a11 
QBluetoothUuid::TimeZone0x2a0e 
QBluetoothUuid::TrueWindDirection0x2a71The characteristic states the direction of the wind with an angle measured clockwise relative to (Geographic) True North. A wind coming from the east is given as 90 degrees.
QBluetoothUuid::TrueWindSpeed0x2a70The characteristic states the wind speed in meters per seconds.
QBluetoothUuid::TwoZoneHeartRateLimits0x2a95This characteristic contains the limits between the heart rate zones for the 2-zone heart rate definition.
QBluetoothUuid::TxPowerLevel0x2a07The value of the characteristic is a signed 8 bit integer that has a fixed point exponent of 0.
QBluetoothUuid::UnreadAlertStatus0x2a45This characteristic shows how many numbers of unread alerts exist in the specific category in the device.
QBluetoothUuid::UserControlPoint0x2a9f 
QBluetoothUuid::UserIndex0x2a9aThis characteristic states the index of the user.
QBluetoothUuid::UVIndex0x2a76This characteristic exposes the UV index.
QBluetoothUuid::VO2Max0x2a96This characteristic exposes the maximum Oxygen uptake of a user.
QBluetoothUuid::WaistCircumference0x2a97This characteristic states the user's waist circumference in meters.
QBluetoothUuid::Weight0x2a98This characteristic exposes the user's weight in kilograms.
QBluetoothUuid::WeightMeasurement0x2a9dThis characteristic provides weight related data such as BMI or the user's weight.
QBluetoothUuid::WeightScaleFeature0x2a9eThis characteristic describes the available data in the WeightMeasurement characteristic.
QBluetoothUuid::WindChill0x2a79This characteristic states the wind chill in degree Celsius

This enum was introduced or modified in Qt 5.4.

enum QBluetoothUuid::DescriptorType

Descriptors are attributes that describe Bluetooth Low Energy characteristic values.

This enum is a convienience type for descriptor class UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary. The detailed type specifications can be found on bluetooth.org.

ConstantValueDescription
QBluetoothUuid::CharacteristicExtendedProperties0x2900Descriptor defines additional Characteristic Properties. The existence of this descriptor is indicated by the QLowEnergyCharacteristic::ExtendedProperty flag.
QBluetoothUuid::CharacteristicUserDescription0x2901Descriptor provides a textual user description for a characteristic value.
QBluetoothUuid::ClientCharacteristicConfiguration0x2902Descriptor defines how the characteristic may be configured by a specific client.
QBluetoothUuid::ServerCharacteristicConfiguration0x2903Descriptor defines how the characteristic descriptor is associated with may be configured for the server.
QBluetoothUuid::CharacteristicPresentationFormat0x2904Descriptor defines the format of the Characteristic Value.
QBluetoothUuid::CharacteristicAggregateFormat0x2905Descriptor defines the format of an aggregated Characteristic Value.
QBluetoothUuid::ValidRange0x2906descriptor is used for defining the range of a characteristics. Two mandatory fields are contained (upper and lower bounds) which define the range.
QBluetoothUuid::ExternalReportReference0x2907Allows a HID Host to map information from the Report Map characteristic value for Input Report, Output Report or Feature Report data to the Characteristic UUID of external service characteristics used to transfer the associated data.
QBluetoothUuid::ReportReference0x2908Mapping information in the form of a Report ID and Report Type which maps the current parent characteristic to the Report ID(s) and Report Type (s) defined within the Report Map characteristic.
QBluetoothUuid::EnvironmentalSensingConfiguration0x290bDescriptor defines how multiple trigger settings descriptors are combined. Therefore this descriptor works together with the EnvironmentalSensingTriggerSetting descriptor to define the conditions under which the associated characteristic value can be notified.
QBluetoothUuid::EnvironmentalSensingMeasurement0x290cDescriptor defines the additional information for the environmental sensing server such as the intended application, sampling functions or measurement period and uncertainty.
QBluetoothUuid::EnvironmentalSensingTriggerSetting0x290dDescriptor defines under which conditions an environmental sensing server (ESS) should trigger notifications. Examples of such conditions are certain thresholds being reached or timers having expired. This implies that the ESS characteristic supports notifications.
QBluetoothUuid::UnknownDescriptorType0x0The descriptor type is unknown.

This enum was introduced or modified in Qt 5.4.

enum QBluetoothUuid::ProtocolUuid

This enum is a convienience type for Bluetooth protocol UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary.

ConstantValueDescription
QBluetoothUuid::Sdp0x0001SDP protocol UUID
QBluetoothUuid::Udp0x0002UDP protocol UUID
QBluetoothUuid::Rfcomm0x0003RFCOMM protocol UUID
QBluetoothUuid::Tcp0x0004TCP protocol UUID
QBluetoothUuid::TcsBin0x0005Telephony Control Specification UUID
QBluetoothUuid::TcsAt0x0006Telephony Control Specification AT UUID
QBluetoothUuid::Att0x0007Attribute protocol UUID
QBluetoothUuid::Obex0x0008OBEX protocol UUID
QBluetoothUuid::Ip0x0009IP protocol UUID
QBluetoothUuid::Ftp0x000AFTP protocol UUID
QBluetoothUuid::Http0x000CHTTP protocol UUID
QBluetoothUuid::Wsp0x000EWSP UUID
QBluetoothUuid::Bnep0x000FBluetooth Network Encapsulation Protocol UUID
QBluetoothUuid::Upnp0x0010Extended Service Discovery Profile UUID
QBluetoothUuid::Hidp0x0011Human Interface Device Profile UUID
QBluetoothUuid::HardcopyControlChannel0x0012Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::HardcopyDataChannel0x0014Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::HardcopyNotification0x0016Hardcopy Cable Replacement Profile UUID
QBluetoothUuid::Avctp0x0017Audio/Video Control Transport Protocol UUID
QBluetoothUuid::Avdtp0x0019Audio/Video Distribution Transport Protocol UUID
QBluetoothUuid::Cmtp0x001BCommon ISDN Access Profile
QBluetoothUuid::UdiCPlain0x001DUDI protocol UUID
QBluetoothUuid::McapControlChannel0x001EMulti-Channel Adaptation Protocol UUID
QBluetoothUuid::McapDataChannel0x001FMulti-Channel Adaptation Protocol UUID
QBluetoothUuid::L2cap0x0100L2CAP protocol UUID

See also QBluetoothServiceInfo::ProtocolDescriptorList.

enum QBluetoothUuid::ServiceClassUuid

This enum is a convienience type for Bluetooth service class and profile UUIDs. Values of this type will be implicitly converted into a QBluetoothUuid when necessary. Some UUIDs refer to service class ids, others to profile ids and some can be used as both. In general, profile UUIDs shall only be used in a QBluetoothServiceInfo::BluetoothProfileDescriptorList attribute and service class UUIDs shall only be used in a QBluetoothServiceInfo::ServiceClassIds attribute. If the UUID is marked as profile and service class UUID it can be used as a value for either of the above service attributes. Such a dual use has historical reasons but is no longer permissible for newer UUIDs.

The list below explicitly states as what type each UUID shall be used. Bluetooth Low Energy related values starting with 0x18 were introduced by Qt 5.4

ConstantValueDescription
QBluetoothUuid::ServiceDiscoveryServer0x1000Service discovery server UUID (service)
QBluetoothUuid::BrowseGroupDescriptor0x1001Browser group descriptor (service)
QBluetoothUuid::PublicBrowseGroup0x1002Public browse group service class. Services which have the public browse group in their browse group list are discoverable by the remote devices.
QBluetoothUuid::SerialPort0x1101Serial Port Profile UUID (service & profile)
QBluetoothUuid::LANAccessUsingPPP0x1102LAN Access Profile UUID (service & profile)
QBluetoothUuid::DialupNetworking0x1103Dial-up Networking Profile UUID (service & profile)
QBluetoothUuid::IrMCSync0x1104Synchronization Profile UUID (service & profile)
QBluetoothUuid::ObexObjectPush0x1105OBEX object push service UUID (service & profile)
QBluetoothUuid::OBEXFileTransfer0x1106File Transfer Profile (FTP) UUID (service & profile)
QBluetoothUuid::IrMCSyncCommand0x1107Synchronization Profile UUID (profile)
QBluetoothUuid::Headset0x1108Headset Profile (HSP) UUID (service & profile)
QBluetoothUuid::AudioSource0x110aAdvanced Audio Distribution Profile (A2DP) UUID (service)
QBluetoothUuid::AudioSink0x110bAdvanced Audio Distribution Profile (A2DP) UUID (service)
QBluetoothUuid::AV_RemoteControlTarget0x110cAudio/Video Remote Control Profile (AVRCP) UUID (service)
QBluetoothUuid::AdvancedAudioDistribution0x110dAdvanced Audio Distribution Profile (A2DP) UUID (profile)
QBluetoothUuid::AV_RemoteControl0x110eAudio/Video Remote Control Profile (AVRCP) UUID (service & profile)
QBluetoothUuid::AV_RemoteControlController0x110fAudio/Video Remote Control Profile UUID (service)
QBluetoothUuid::HeadsetAG0x1112Headset Profile (HSP) UUID (service)
QBluetoothUuid::PANU0x1115Personal Area Networking Profile (PAN) UUID (service & profile)
QBluetoothUuid::NAP0x1116Personal Area Networking Profile (PAN) UUID (service & profile)
QBluetoothUuid::GN0x1117Personal Area Networking Profile (PAN) UUID (service & profile)
QBluetoothUuid::DirectPrinting0x1118Basic Printing Profile (BPP) UUID (service)
QBluetoothUuid::ReferencePrinting0x1119Related to Basic Printing Profile (BPP) UUID (service)
QBluetoothUuid::BasicImage0x111aBasic Imaging Profile (BIP) UUID (profile)
QBluetoothUuid::ImagingResponder0x111bBasic Imaging Profile (BIP) UUID (service)
QBluetoothUuid::ImagingAutomaticArchive0x111cBasic Imaging Profile (BIP) UUID (service)
QBluetoothUuid::ImagingReferenceObjects0x111dBasic Imaging Profile (BIP) UUID (service)
QBluetoothUuid::Handsfree0x111eHands-Free Profile (HFP) UUID (service & profile)
QBluetoothUuid::HandsfreeAudioGateway0x111fHands-Free Audio Gateway (HFP) UUID (service)
QBluetoothUuid::DirectPrintingReferenceObjectsService0x1120Basic Printing Profile (BPP) UUID (service)
QBluetoothUuid::ReflectedUI0x1121Basic Printing Profile (BPP) UUID (service)
QBluetoothUuid::BasicPrinting0x1122Basic Printing Profile (BPP) UUID (profile)
QBluetoothUuid::PrintingStatus0x1123Basic Printing Profile (BPP) UUID (service)
QBluetoothUuid::HumanInterfaceDeviceService0x1124Human Interface Device (HID) UUID (service & profile)
QBluetoothUuid::HardcopyCableReplacement0x1125Hardcopy Cable Replacement Profile (HCRP) (profile)
QBluetoothUuid::HCRPrint0x1126Hardcopy Cable Replacement Profile (HCRP) (service)
QBluetoothUuid::HCRScan0x1127Hardcopy Cable Replacement Profile (HCRP) (service)
QBluetoothUuid::SIMAccess0x112dSIM Access Profile (SAP) UUID (service and profile)
QBluetoothUuid::PhonebookAccessPCE0x112ePhonebook Access Profile (PBAP) UUID (service)
QBluetoothUuid::PhonebookAccessPSE0x112fPhonebook Access Profile (PBAP) UUID (service)
QBluetoothUuid::PhonebookAccess0x1130Phonebook Access Profile (PBAP) (profile)
QBluetoothUuid::HeadsetHS0x1131Headset Profile (HSP) UUID (service)
QBluetoothUuid::MessageAccessServer0x1132Message Access Profile (MAP) UUID (service)
QBluetoothUuid::MessageNotificationServer0x1133Message Access Profile (MAP) UUID (service)
QBluetoothUuid::MessageAccessProfile0x1134Message Access Profile (MAP) UUID (profile)
QBluetoothUuid::GNSS0x1135Global Navigation Satellite System UUID (profile)
QBluetoothUuid::GNSSServer0x1136Global Navigation Satellite System Server (UUID) (service)
QBluetoothUuid::Display3D0x11373D Synchronization Display UUID (service)
QBluetoothUuid::Glasses3D0x11383D Synchronization Glasses UUID (service)
QBluetoothUuid::Synchronization3D0x11393D Synchronization UUID (profile)
QBluetoothUuid::MPSProfile0x113aMulti-Profile Specification UUID (profile)
QBluetoothUuid::MPSService0x113bMulti-Profile Specification UUID (service)
QBluetoothUuid::PnPInformation0x1200Device Identification (DID) UUID (service & profile)
QBluetoothUuid::GenericNetworking0x1201Generic networking UUID (service)
QBluetoothUuid::GenericFileTransfer0x1202Generic file transfer UUID (service)
QBluetoothUuid::GenericAudio0x1203Generic audio UUID (service)
QBluetoothUuid::GenericTelephony0x1204Generic telephone UUID (service)
QBluetoothUuid::VideoSource0x1303Video Distribution Profile (VDP) UUID (service)
QBluetoothUuid::VideoSink0x1304Video Distribution Profile (VDP) UUID (service)
QBluetoothUuid::VideoDistribution0x1305Video Distribution Profile (VDP) UUID (profile)
QBluetoothUuid::HDP0x1400Health Device Profile (HDP) UUID (profile)
QBluetoothUuid::HDPSource0x1401Health Device Profile Source (HDP) UUID (service)
QBluetoothUuid::HDPSink0x1402Health Device Profile Sink (HDP) UUID (service)
QBluetoothUuid::GenericAccess0x1800Generic access service for Bluetooth Low Energy devices UUID (service). It contains generic information about the device. All available Characteristics are readonly.
QBluetoothUuid::GenericAttribute0x1801 
QBluetoothUuid::ImmediateAlert0x1802Immediate Alert UUID (service). The service exposes a control point to allow a peer device to cause the device to immediately alert.
QBluetoothUuid::LinkLoss0x1803Link Loss UUID (service). The service defines behavior when a link is lost between two devices.
QBluetoothUuid::TxPower0x1804Transmission Power UUID (service). The service exposes a device’s current transmit power level when in a connection.
QBluetoothUuid::CurrentTimeService0x1805Current Time UUID (service). The service defines how the current time can be exposed using the Generic Attribute Profile (GATT).
QBluetoothUuid::ReferenceTimeUpdateService0x1806Reference Time update UUID (service). The service defines how a client can request an update from a reference time source from a time server.
QBluetoothUuid::NextDSTChangeService0x1807Next DST change UUID (service). The service defines how the information about an upcoming DST change can be exposed.
QBluetoothUuid::Glucose0x1808Glucose UUID (service). The service exposes glucose and other data from a glucose sensor for use in consumer and professional healthcare applications.
QBluetoothUuid::HealthThermometer0x1809Health Thermometer UUID (service). The Health Thermometer service exposes temperature and other data from a thermometer intended for healthcare and fitness applications.
QBluetoothUuid::DeviceInformation0x180aDevice Information UUID (service). The Device Information Service exposes manufacturer and/or vendor information about a device.
QBluetoothUuid::HeartRate0x180dHeart Rate UUID (service). The service exposes the heart rate and other data from a Heart Rate Sensor intended for fitness applications.
QBluetoothUuid::PhoneAlertStatusService0x180ePhone Alert Status UUID (service). The service exposes the phone alert status when in a connection.
QBluetoothUuid::BatteryService0x180fBattery UUID (service). The Battery Service exposes the state of a battery within a device.
QBluetoothUuid::BloodPressure0x1810Blood Pressure UUID (service). The service exposes blood pressure and other data from a blood pressure monitor intended for healthcare applications.
QBluetoothUuid::AlertNotificationService0x1811Alert Notification UUID (service). The Alert Notification service exposes alert information on a device.
QBluetoothUuid::HumanInterfaceDevice0x1812Human Interface UUID (service). The service exposes the HID reports and other HID data intended for HID Hosts and HID Devices.
QBluetoothUuid::ScanParameters0x1813Scan Parameters UUID (service). The Scan Parameters Service enables a GATT Server device to expose a characteristic for the GATT Client to write its scan interval and scan window on the GATT Server device.
QBluetoothUuid::RunningSpeedAndCadence0x1814Runnung Speed and Cadence UUID (service). The service exposes speed, cadence and other data from a Running Speed and Cadence Sensor intended for fitness applications.
QBluetoothUuid::CyclingSpeedAndCadence0x1816Cycling Speed and Cadence UUID (service). The service exposes speed-related and cadence-related data from a Cycling Speed and Cadence sensor intended for fitness applications.
QBluetoothUuid::CyclingPower0x1818Cycling Speed UUID (service). The service exposes power- and force-related data and optionally speed- and cadence-related data from a Cycling Power sensor intended for sports and fitness applications.
QBluetoothUuid::LocationAndNavigation0x1819Location Navigation UUID (service). The service exposes location and navigation-related data from a Location and Navigation sensor intended for outdoor activity applications.
QBluetoothUuid::EnvironmentalSensing0x181aEnvironmental sensor UUID (service). The service exposes data from an environmental sensor for sports and fitness applications.
QBluetoothUuid::BodyComposition0x181bBody composition UUID (service). The service exposes data about the body composition intended for consumer healthcare applications.
QBluetoothUuid::UserData0x181cUser Data UUID (service). The User Data service provides user-related data such as name, gender or weight in sports and fitness environments.
QBluetoothUuid::WeightScale0x181dWeight Scale UUID (service). The Weight Scale service exposes weight-related data from a scale for consumer healthcare, sports and fitness applications.
QBluetoothUuid::BondManagement0x181eBond Management UUID (service). The Bond Management service enables user to manage the storage of bond information on Bluetooth devices.
QBluetoothUuid::ContinuousGlucoseMonitoring0x181fContinuous Glucose Monitoring UUID (service). The Continuous Glucose Monitoring service exposes glucose data from a monitoring sensor for use in healthcare applications.

Member Function Documentation

QBluetoothUuid::QBluetoothUuid()

Constructs a new null Bluetooth UUID.

QBluetoothUuid::QBluetoothUuid(QBluetoothUuid::ProtocolUuid uuid)

Constructs a new Bluetooth UUID from the protocol uuid.

QBluetoothUuid::QBluetoothUuid(QBluetoothUuid::ServiceClassUuid uuid)

Constructs a new Bluetooth UUID from the service class uuid.

QBluetoothUuid::QBluetoothUuid(QBluetoothUuid::CharacteristicType uuid)

Constructs a new Bluetooth UUID from the characteristic type uuid.

This function was introduced in Qt 5.4.

QBluetoothUuid::QBluetoothUuid(QBluetoothUuid::DescriptorType uuid)

Constructs a new Bluetooth UUID from the descriptor type uuid.

This function was introduced in Qt 5.4.

QBluetoothUuid::QBluetoothUuid(quint16 uuid)

Constructs a new Bluetooth UUID from the 16 bit uuid.

QBluetoothUuid::QBluetoothUuid(quint32 uuid)

Constructs a new Bluetooth UUID from the 32 bit uuid.

QBluetoothUuid::QBluetoothUuid(quint128 uuid)

Constructs a new Bluetooth UUID from the 128 bit uuid.

Note that uuid must be in big endian order.

QBluetoothUuid::QBluetoothUuid(const QString &uuid)

Creates a QBluetoothUuid object from the string uuid, which must be formatted as five hex fields separated by '-', e.g., "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. The curly braces shown here are optional, but it is normal to include them. If the conversion fails, a null UUID is created. See QUuid::toString() for an explanation of how the five hex fields map to the public data members in QUuid.

QBluetoothUuid::QBluetoothUuid(const QBluetoothUuid &uuid)

Constructs a new Bluetooth UUID that is a copy of uuid.

QBluetoothUuid::QBluetoothUuid(const QUuid &uuid)

Constructs a new Bluetooth UUID that is a copy of uuid.

QBluetoothUuid::~QBluetoothUuid()

Destroys the Bluetooth UUID.

[static] QString QBluetoothUuid::characteristicToString(QBluetoothUuid::CharacteristicType uuid)

Returns a human-readable and translated name for the given characteristic type represented by uuid.

This function was introduced in Qt 5.4.

See also QBluetoothUuid::CharacteristicType.

[static] QString QBluetoothUuid::descriptorToString(QBluetoothUuid::DescriptorType uuid)

Returns a human-readable and translated name for the given descriptor type represented by uuid.

This function was introduced in Qt 5.4.

See also QBluetoothUuid::DescriptorType.

int QBluetoothUuid::minimumSize() const

Returns the minimum size in bytes that this UUID can be represented in. For non-null UUIDs 2, 4 or 16 is returned. 0 is returned for null UUIDs.

See also isNull(), toUInt16(), toUInt32(), and toUInt128().

[static] QString QBluetoothUuid::protocolToString(QBluetoothUuid::ProtocolUuid uuid)

Returns a human-readable and translated name for the given protocol represented by uuid.

This function was introduced in Qt 5.4.

See also QBluetoothUuid::ProtocolUuid.

[static] QString QBluetoothUuid::serviceClassToString(QBluetoothUuid::ServiceClassUuid uuid)

Returns a human-readable and translated name for the given service class represented by uuid.

This function was introduced in Qt 5.4.

See also QBluetoothUuid::ServiceClassUuid.

quint16 QBluetoothUuid::toUInt16(bool *ok = nullptr) const

Returns the 16 bit representation of this UUID. If ok is passed, it is set to true if the conversion is possible, otherwise it is set to false. The return value is undefined if ok is set to false.

quint32 QBluetoothUuid::toUInt32(bool *ok = nullptr) const

Returns the 32 bit representation of this UUID. If ok is passed, it is set to true if the conversion is possible, otherwise it is set to false. The return value is undefined if ok is set to false.

quint128 QBluetoothUuid::toUInt128() const

Returns the 128 bit representation of this UUID.

bool QBluetoothUuid::operator!=(const QBluetoothUuid &other) const

Returns true if other is not equal to this Bluetooth UUID, otherwise false.

This function was introduced in Qt 5.7.

QBluetoothUuid &QBluetoothUuid::operator=(const QBluetoothUuid &other)

Copy-assignment operator.

bool QBluetoothUuid::operator==(const QBluetoothUuid &other) const

Returns true if other is equal to this Bluetooth UUID, otherwise false.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.