PySide6.QtBluetooth.QBluetoothUuid¶
- class QBluetoothUuid¶
QBluetoothUuid类为每个蓝牙服务生成一个UUID。更多…概要¶
方法¶
def
__init__()def
minimumSize()def
__ne__()def
__eq__()def
toUInt16()def
toUInt32()
静态函数¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- class ProtocolUuid¶
此枚举是用于蓝牙协议UUID的便利类型。在必要时,此类型的值将隐式转换为
QBluetoothUuid。常量
描述
QBluetoothUuid.ProtocolUuid.Sdp
SDP协议UUID
QBluetoothUuid.ProtocolUuid.Udp
UDP协议UUID
QBluetoothUuid.ProtocolUuid.Rfcomm
RFCOMM 协议 UUID
QBluetoothUuid.ProtocolUuid.Tcp
TCP协议UUID
QBluetoothUuid.ProtocolUuid.TcsBin
电话控制规范UUID
QBluetoothUuid.ProtocolUuid.TcsAt
电话控制规范 AT UUID
QBluetoothUuid.ProtocolUuid.Att
属性协议UUID
QBluetoothUuid.ProtocolUuid.Obex
OBEX协议UUID
QBluetoothUuid.ProtocolUuid.Ip
IP协议UUID
QBluetoothUuid.ProtocolUuid.Ftp
FTP协议UUID
QBluetoothUuid.ProtocolUuid.Http
HTTP协议UUID
QBluetoothUuid.ProtocolUuid.Wsp
WSP UUID
QBluetoothUuid.ProtocolUuid.Bnep
蓝牙网络封装协议UUID
QBluetoothUuid.ProtocolUuid.Upnp
扩展服务发现配置文件UUID
QBluetoothUuid.ProtocolUuid.Hidp
人机接口设备配置文件 UUID
QBluetoothUuid.ProtocolUuid.HardcopyControlChannel
硬拷贝电缆替换配置文件 UUID
QBluetoothUuid.ProtocolUuid.HardcopyDataChannel
硬拷贝电缆替换配置文件 UUID
QBluetoothUuid.ProtocolUuid.HardcopyNotification
硬拷贝电缆替换配置文件 UUID
QBluetoothUuid.ProtocolUuid.Avctp
音频/视频控制传输协议 UUID
QBluetoothUuid.ProtocolUuid.Avdtp
音频/视频分发传输协议 UUID
QBluetoothUuid.ProtocolUuid.Cmtp
通用ISDN接入配置文件
QBluetoothUuid.ProtocolUuid.UdiCPlain
UDI协议UUID
QBluetoothUuid.ProtocolUuid.McapControlChannel
多通道适配协议UUID
QBluetoothUuid.ProtocolUuid.McapDataChannel
多通道适配协议UUID
QBluetoothUuid.ProtocolUuid.L2cap
L2CAP协议UUID
- class ServiceClassUuid¶
此枚举类型为蓝牙服务类和配置文件UUID提供了便利。此类型的值在必要时将隐式转换为
QBluetoothUuid。一些UUID指的是服务类ID,另一些指的是配置文件ID,还有一些可以同时用作两者。通常,配置文件UUID应仅在BluetoothProfileDescriptorList属性中使用,而服务类UUID应仅在ServiceClassIds属性中使用。如果UUID被标记为配置文件和服类UUID,则可以用作上述任一服务属性的值。这种双重使用有历史原因,但对于较新的UUID不再允许。下面的列表明确说明了每种UUID应作为何种类型使用。以0x18开头的蓝牙低功耗相关值由Qt 5.4引入。
常量
描述
QBluetoothUuid.ServiceClassUuid.ServiceDiscoveryServer
服务发现服务器UUID(服务)
QBluetoothUuid.ServiceClassUuid.BrowseGroupDescriptor
浏览组描述符(服务)
QBluetoothUuid.ServiceClassUuid.PublicBrowseGroup
公共浏览组服务类。在其
browse group list中包含公共浏览组的服务可以被远程设备发现。QBluetoothUuid.ServiceClassUuid.SerialPort
串行端口配置文件UUID(服务与配置文件)
QBluetoothUuid.ServiceClassUuid.LANAccessUsingPPP
局域网访问配置文件UUID(服务与配置文件)
QBluetoothUuid.ServiceClassUuid.DialupNetworking
拨号网络配置文件UUID(服务与配置文件)
QBluetoothUuid.ServiceClassUuid.IrMCSync
同步配置文件UUID(服务与配置文件)
QBluetoothUuid.ServiceClassUuid.ObexObjectPush
OBEX 对象推送服务 UUID(服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.OBEXFileTransfer
文件传输配置文件 (FTP) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.IrMCSyncCommand
同步配置文件UUID(配置文件)
QBluetoothUuid.ServiceClassUuid.Headset
耳机配置文件 (HSP) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.AudioSource
高级音频分发配置文件 (A2DP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.AudioSink
高级音频分发配置文件 (A2DP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.AV_RemoteControlTarget
音频/视频远程控制配置文件 (AVRCP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.AdvancedAudioDistribution
高级音频分发配置文件 (A2DP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.AV_RemoteControl
音频/视频远程控制配置文件 (AVRCP) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.AV_RemoteControlController
音频/视频远程控制配置文件UUID(服务)
QBluetoothUuid.ServiceClassUuid.HeadsetAG
耳机配置文件 (HSP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.PANU
个人区域网络配置文件 (PAN) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.NAP
个人区域网络配置文件 (PAN) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.GN
个人区域网络配置文件 (PAN) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.DirectPrinting
基本打印配置文件 (BPP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.ReferencePrinting
与基本打印配置文件 (BPP) UUID(服务)相关
QBluetoothUuid.ServiceClassUuid.BasicImage
基本成像配置文件 (BIP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.ImagingResponder
基本成像配置文件 (BIP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.ImagingAutomaticArchive
基本成像配置文件 (BIP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.ImagingReferenceObjects
基本成像配置文件 (BIP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.Handsfree
免提配置文件 (HFP) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.HandsfreeAudioGateway
免提音频网关 (HFP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.DirectPrintingReferenceObjectsService
基本打印配置文件 (BPP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.ReflectedUI
基本打印配置文件 (BPP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.BasicPrinting
基本打印配置文件 (BPP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.PrintingStatus
基本打印配置文件 (BPP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.HumanInterfaceDeviceService
人机接口设备 (HID) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.HardcopyCableReplacement
硬拷贝电缆替换配置文件 (HCRP) (配置文件)
QBluetoothUuid.ServiceClassUuid.HCRPrint
硬拷贝电缆替换配置文件 (HCRP) (服务)
QBluetoothUuid.ServiceClassUuid.HCRScan
硬拷贝电缆替换配置文件 (HCRP) (服务)
QBluetoothUuid.ServiceClassUuid.SIMAccess
SIM 访问配置文件 (SAP) UUID(服务和配置文件)
QBluetoothUuid.ServiceClassUuid.PhonebookAccessPCE
电话簿访问配置文件 (PBAP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.PhonebookAccessPSE
电话簿访问配置文件 (PBAP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.PhonebookAccess
电话簿访问配置文件 (PBAP) (配置文件)
QBluetoothUuid.ServiceClassUuid.HeadsetHS
耳机配置文件 (HSP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.MessageAccessServer
消息访问配置文件 (MAP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.MessageNotificationServer
消息访问配置文件 (MAP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.MessageAccessProfile
消息访问配置文件 (MAP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.GNSS
全球导航卫星系统UUID(配置文件)
QBluetoothUuid.ServiceClassUuid.GNSSServer
全球导航卫星系统服务器 (UUID) (服务)
QBluetoothUuid.ServiceClassUuid.Display3D
3D同步显示UUID(服务)
QBluetoothUuid.ServiceClassUuid.Glasses3D
3D同步眼镜UUID(服务)
QBluetoothUuid.ServiceClassUuid.Synchronization3D
3D 同步 UUID(配置文件)
QBluetoothUuid.ServiceClassUuid.MPSProfile
多配置文件规范UUID(配置文件)
QBluetoothUuid.ServiceClassUuid.MPSService
多配置文件规范UUID(服务)
QBluetoothUuid.ServiceClassUuid.PnPInformation
设备识别 (DID) UUID (服务 & 配置文件)
QBluetoothUuid.ServiceClassUuid.GenericNetworking
通用网络UUID(服务)
QBluetoothUuid.ServiceClassUuid.GenericFileTransfer
通用文件传输UUID(服务)
QBluetoothUuid.ServiceClassUuid.GenericAudio
通用音频UUID(服务)
QBluetoothUuid.ServiceClassUuid.GenericTelephony
通用电话UUID(服务)
QBluetoothUuid.ServiceClassUuid.VideoSource
视频分发配置文件 (VDP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.VideoSink
视频分发配置文件 (VDP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.VideoDistribution
视频分发配置文件 (VDP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.HDP
健康设备配置文件 (HDP) UUID (配置文件)
QBluetoothUuid.ServiceClassUuid.HDPSource
健康设备配置文件源 (HDP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.HDPSink
健康设备配置文件接收器 (HDP) UUID (服务)
QBluetoothUuid.ServiceClassUuid.GenericAccess
蓝牙低功耗设备的通用访问服务UUID(服务)。它包含设备的通用信息。所有可用的特性都是只读的。
QBluetoothUuid.ServiceClassUuid.GenericAttribute
QBluetoothUuid.ServiceClassUuid.ImmediateAlert
即时警报UUID(服务)。该服务暴露了一个控制点,允许对等设备使设备立即发出警报。
QBluetoothUuid.ServiceClassUuid.LinkLoss
链接丢失UUID(服务)。该服务定义了两个设备之间链接丢失时的行为。
QBluetoothUuid.ServiceClassUuid.TxPower
传输功率UUID(服务)。该服务在连接时暴露设备的当前传输功率级别。
QBluetoothUuid.ServiceClassUuid.CurrentTimeService
当前时间UUID(服务)。该服务定义了如何使用通用属性配置文件(GATT)来暴露当前时间。
QBluetoothUuid.ServiceClassUuid.ReferenceTimeUpdateService
参考时间更新UUID(服务)。该服务定义了客户端如何从时间服务器请求参考时间源的更新。
QBluetoothUuid.ServiceClassUuid.NextDSTChangeService
下一个DST更改UUID(服务)。该服务定义了如何公开即将到来的DST更改的信息。
QBluetoothUuid.ServiceClassUuid.Glucose
葡萄糖 UUID(服务)。该服务暴露了来自葡萄糖传感器的葡萄糖和其他数据,用于消费者和专业医疗保健应用。
QBluetoothUuid.ServiceClassUuid.HealthThermometer
健康温度计UUID(服务)。健康温度计服务暴露了来自温度计的温度和其他数据,适用于医疗保健和健身应用。
QBluetoothUuid.ServiceClassUuid.DeviceInformation
设备信息UUID(服务)。设备信息服务暴露了设备的制造商和/或供应商信息。
QBluetoothUuid.ServiceClassUuid.HeartRate
心率UUID(服务)。该服务暴露了来自心率传感器的心率和其他数据,适用于健身应用。
QBluetoothUuid.ServiceClassUuid.PhoneAlertStatusService
电话警报状态UUID(服务)。该服务在连接时暴露电话警报状态。
QBluetoothUuid.ServiceClassUuid.BatteryService
电池UUID(服务)。电池服务暴露设备内电池的状态。
QBluetoothUuid.ServiceClassUuid.BloodPressure
血压UUID(服务)。该服务暴露了来自血压监测仪的血压和其他数据,适用于医疗保健应用。
QBluetoothUuid.ServiceClassUuid.AlertNotificationService
警报通知UUID(服务)。警报通知服务在设备上暴露警报信息。
QBluetoothUuid.ServiceClassUuid.HumanInterfaceDevice
人机接口UUID(服务)。该服务暴露了用于HID主机和HID设备的HID报告和其他HID数据。
QBluetoothUuid.ServiceClassUuid.ScanParameters
扫描参数UUID(服务)。扫描参数服务使GATT服务器设备能够暴露一个特性,以便GATT客户端在GATT服务器设备上写入其扫描间隔和扫描窗口。
QBluetoothUuid.ServiceClassUuid.RunningSpeedAndCadence
跑步速度和节奏UUID(服务)。该服务暴露了来自跑步速度和节奏传感器的速度、节奏和其他数据,适用于健身应用。
QBluetoothUuid.ServiceClassUuid.CyclingSpeedAndCadence
骑行速度和踏频UUID(服务)。该服务从骑行速度和踏频传感器暴露与速度和踏频相关的数据,适用于健身应用。
QBluetoothUuid.ServiceClassUuid.CyclingPower
骑行速度UUID(服务)。该服务暴露了来自骑行功率传感器的功率和力相关数据,以及可选的与速度和踏频相关的数据,适用于运动和健身应用。
QBluetoothUuid.ServiceClassUuid.LocationAndNavigation
位置导航UUID(服务)。该服务暴露了来自位置和导航传感器的位置和导航相关数据,适用于户外活动应用。
QBluetoothUuid.ServiceClassUuid.EnvironmentalSensing
环境传感器UUID(服务)。该服务为运动和健身应用提供环境传感器的数据。
QBluetoothUuid.ServiceClassUuid.BodyComposition
身体成分UUID(服务)。该服务暴露了用于消费者医疗保健应用的身体成分数据。
QBluetoothUuid.ServiceClassUuid.UserData
用户数据UUID(服务)。用户数据服务提供与用户相关的数据,例如在运动和健身环境中的姓名、性别或体重。
QBluetoothUuid.ServiceClassUuid.WeightScale
体重秤UUID(服务)。体重秤服务暴露了来自秤的与体重相关的数据,适用于消费者医疗保健、体育和健身应用。
QBluetoothUuid.ServiceClassUuid.BondManagement
绑定管理UUID(服务)。绑定管理服务使用户能够管理蓝牙设备上绑定信息的存储。
QBluetoothUuid.ServiceClassUuid.ContinuousGlucoseMonitoring
连续血糖监测UUID(服务)。连续血糖监测服务暴露来自监测传感器的血糖数据,用于医疗保健应用。
- class CharacteristicType¶
此枚举类型为蓝牙低功耗服务特征类UUID提供便利。此类型的值在必要时将隐式转换为
QBluetoothUuid。详细类型描述可在bluetooth.org上找到。常量
描述
QBluetoothUuid.CharacteristicType.AerobicHeartRateLowerLimit
用户在进行锻炼时提高耐力的心率下限。
QBluetoothUuid.CharacteristicType.AerobicHeartRateUpperLimit
用户在进行锻炼时提高耐力的心率上限。
QBluetoothUuid.CharacteristicType.AerobicThreshold
此特性表示第一个代谢阈值。
QBluetoothUuid.CharacteristicType.Age
此特征表示用户的年龄。
QBluetoothUuid.CharacteristicType.AnaerobicHeartRateLowerLimit
用户在锻炼时增强其无氧耐力的心率下限。
QBluetoothUuid.CharacteristicType.AnaerobicHeartRateUpperLimit
用户在锻炼时增强其无氧耐力的心率上限。
QBluetoothUuid.CharacteristicType.AnaerobicThreshold
此特性表示第二个代谢阈值。
QBluetoothUuid.CharacteristicType.AlertCategoryID
警报/消息的类别。
QBluetoothUuid.CharacteristicType.AlertCategoryIDBitMask
警报/消息的类别。
QBluetoothUuid.CharacteristicType.AlertLevel
设备发出警报的级别。如果在警报响起时更改此级别,新级别应立即生效。
QBluetoothUuid.CharacteristicType.AlertNotificationControlPoint
警报通知服务器的控制点。客户端可以在此写入命令以请求服务器执行多个功能。
QBluetoothUuid.CharacteristicType.AlertStatus
警报状态特性定义了警报的状态。
QBluetoothUuid.CharacteristicType.ApparentWindDirection
该特性暴露了表观风向。表观风是由运动中的观察者感受到的风。该特性以相对于观察者航向的顺时针角度表示风向。
QBluetoothUuid.CharacteristicType.ApparentWindSpeed
该特性以米每秒为单位暴露表观风速。表观风是运动中的观察者所感受到的风。
QBluetoothUuid.CharacteristicType.Appearance
此设备的外部外观。值由类别(10位)和子类别(6位)组成。
QBluetoothUuid.CharacteristicType.BarometricPressureTrend
此特性展示了气压的趋势。
QBluetoothUuid.CharacteristicType.BatteryLevel
电池的当前充电水平。100% 表示完全充电,0% 表示完全放电。
QBluetoothUuid.CharacteristicType.BloodPressureFeature
血压特征特性用于描述血压传感器支持的功能。
QBluetoothUuid.CharacteristicType.BloodPressureMeasurement
血压测量特性是一个可变长度的结构,包含一个标志字段、一个血压测量复合值字段,并根据标志字段的内容包含其他字段,如时间戳、脉搏率和用户ID。
QBluetoothUuid.CharacteristicType.BodyCompositionFeature
此特性描述了BodyCompositionMeasurement特性中可用的功能。
QBluetoothUuid.CharacteristicType.BodyCompositionMeasurement
此特性描述了身体组成,如肌肉百分比或身体水分质量。
QBluetoothUuid.CharacteristicType.BodySensorLocation
身体传感器位置特征描述了传感器在身体上的位置(例如:胸部、手指或手)。
QBluetoothUuid.CharacteristicType.BootKeyboardInputReport
Boot Keyboard Input Report 特性用于在运行在 Boot Protocol Mode 下的 HID 主机和对应于启动键盘的 HID 服务之间传输固定格式和长度的输入报告数据。
QBluetoothUuid.CharacteristicType.BootKeyboardOutputReport
Boot Keyboard Output Report 特性用于在运行在 Boot Protocol Mode 下的 HID 主机和对应于启动键盘的 HID 服务之间传输固定格式和长度的输出报告数据。
QBluetoothUuid.CharacteristicType.BootMouseInputReport
Boot Mouse Input Report 特性用于在运行在 Boot 协议模式下的 HID 主机和对应于启动鼠标的 HID 服务之间传输固定格式和长度的输入报告数据。
QBluetoothUuid.CharacteristicType.CSCFeature
CSC(骑行速度和踏频)特性特征用于描述服务器支持的功能。
QBluetoothUuid.CharacteristicType.CSCMeasurement
CSC测量特性(CSC指的是骑行速度和踏频)是一个可变长度的结构,包含一个标志字段,并且根据标志字段的内容,可能包含一个或多个附加字段,如下表所示。
QBluetoothUuid.CharacteristicType.CurrentTime
当前时间特性显示与ExactTime256特性相同的信息,以及时区、夏令时和所采用的更新方法的信息。
QBluetoothUuid.CharacteristicType.CyclingPowerControlPoint
骑行功率控制点特性用于请求在接收设备上执行特定功能。
QBluetoothUuid.CharacteristicType.CyclingPowerFeature
CP Feature 特性用于报告设备支持的功能列表。
QBluetoothUuid.CharacteristicType.CyclingPowerMeasurement
骑行功率测量特性是一个可变长度的结构,包含一个标志字段、一个瞬时功率字段,并且根据标志字段的内容,可能包含一个或多个附加字段,如下表所示。
QBluetoothUuid.CharacteristicType.CyclingPowerVector
骑行功率矢量特性是一个可变长度的结构,包含一个标志字段,并且根据标志字段的内容,可能包含一个或多个附加字段,如下表所示。
QBluetoothUuid.CharacteristicType.DatabaseChangeIncrement
QBluetoothUuid.CharacteristicType.DateOfBirth
此特征表示用户的出生日期。
QBluetoothUuid.CharacteristicType.DateOfThresholdAssessment
QBluetoothUuid.CharacteristicType.DateTime
日期时间特性用于表示时间。
QBluetoothUuid.CharacteristicType.DayDateTime
日日期时间特性显示日期、时间和星期几。
QBluetoothUuid.CharacteristicType.DayOfWeek
星期特性描述了一周中的某一天(星期一至星期日)。
QBluetoothUuid.CharacteristicType.DescriptorValueChanged
此特性与环境感知服务相关。
QBluetoothUuid.CharacteristicType.DeviceName
设备名称特性包含设备的名称。
QBluetoothUuid.CharacteristicType.DewPoint
此特性表示以摄氏度表示的露点。
QBluetoothUuid.CharacteristicType.DSTOffset
DST偏移特性描述了夏令时使用的偏移量。
QBluetoothUuid.CharacteristicType.Elevation
海拔特性表示海平面以上/以下的高度。
QBluetoothUuid.CharacteristicType.EmailAddress
此特性表示用户的电子邮件。
QBluetoothUuid.CharacteristicType.ExactTime256
精确时间256特性描述了数据、日期和时间,精度为1/256秒。
QBluetoothUuid.CharacteristicType.FatBurnHeartRateLowerLimit
用户在运动时最大化脂肪燃烧的心率下限。
QBluetoothUuid.CharacteristicType.FatBurnHeartRateUpperLimit
用户运动时最大化脂肪燃烧的心率上限。
QBluetoothUuid.CharacteristicType.FirmwareRevisionString
此特征的值是一个UTF-8字符串,表示设备内固件的固件版本。
QBluetoothUuid.CharacteristicType.FirstName
此特性暴露了用户的名字。
QBluetoothUuid.CharacteristicType.FiveZoneHeartRateLimits
此特性包含5区心率定义的心率区间之间的限制。
QBluetoothUuid.CharacteristicType.Gender
此特性表示用户的性别。
QBluetoothUuid.CharacteristicType.GlucoseFeature
葡萄糖特征特性用于描述服务器支持的功能。当读取时,葡萄糖特征特性返回一个值,客户端使用该值来确定服务器支持的功能。
QBluetoothUuid.CharacteristicType.GlucoseMeasurement
葡萄糖测量特性是一个可变长度的结构,包含一个标志字段、一个序列号字段、一个基准时间字段,并且根据标志字段的内容,可能包含一个时间偏移字段、葡萄糖浓度字段、样本类型位置字段和一个传感器状态宣告字段。
QBluetoothUuid.CharacteristicType.GlucoseMeasurementContext
QBluetoothUuid.CharacteristicType.GustFactor
该特性表示最大阵风速度与平均风速之间的风速增加因子。
QBluetoothUuid.CharacteristicType.HardwareRevisionString
此特征的值是一个UTF-8字符串,表示设备内硬件的硬件版本。
QBluetoothUuid.CharacteristicType.MaximumRecommendedHeartRate
此特性暴露了限制运动的最大推荐心率。
QBluetoothUuid.CharacteristicType.心率控制点
QBluetoothUuid.CharacteristicType.HeartRateMax
此特性表示用户可以达到的最大心率,单位为每分钟心跳次数。
QBluetoothUuid.CharacteristicType.心率测量
QBluetoothUuid.CharacteristicType.HeatIndex
此特性提供以摄氏度为单位的热指数。
QBluetoothUuid.CharacteristicType.Height
此特征表示用户的身高。
QBluetoothUuid.CharacteristicType.HIDControlPoint
HID控制点特性是一个控制点属性,当写入时定义了HID命令。
QBluetoothUuid.CharacteristicType.HIDInformation
HID信息特性在读取时返回HID属性。
QBluetoothUuid.CharacteristicType.HipCircumference
此特性表示用户的臀围,单位为米。
QBluetoothUuid.CharacteristicType.Humidity
该特性表示湿度的百分比。
QBluetoothUuid.CharacteristicType.IEEE1107320601RegulatoryCertificationDataList
该特征的值是一个不透明的结构,列出了设备声称遵守的各种监管和/或认证合规项目。
QBluetoothUuid.CharacteristicType.IntermediateCuffPressure
此特性与血压测量特性具有相同的格式。
QBluetoothUuid.CharacteristicType.IntermediateTemperature
中间温度特征与温度测量特征具有相同的格式。
QBluetoothUuid.CharacteristicType.Irradiance
此特性表示电磁辐射的功率,单位为瓦特每平方米。
QBluetoothUuid.CharacteristicType.Language
此特性包含基于ISO639-1的语言定义。
QBluetoothUuid.CharacteristicType.LastName
此特性表示用户的姓氏。
QBluetoothUuid.CharacteristicType.LNControlPoint
LN控制点特性用于请求在接收设备上执行特定功能。
QBluetoothUuid.CharacteristicType.LNFeature
LN Feature 特性用于报告设备支持的功能列表。
QBluetoothUuid.CharacteristicType.LocalTimeInformation
QBluetoothUuid.CharacteristicType.LocationAndSpeed
位置和速度特性是一个可变长度的结构,包含一个标志字段,并且根据标志字段的内容,可能包含多个数据字段的组合。
QBluetoothUuid.CharacteristicType.MagneticDeclination
该特征包含水平面上(地理)真北与磁北之间的角度,从真北顺时针测量到磁北。
QBluetoothUuid.CharacteristicType.MagneticFluxDensity2D
此特性表示在x轴和y轴上的磁通密度。
QBluetoothUuid.CharacteristicType.MagneticFluxDensity3D
此特性表示在x、y和z轴上的磁通密度。
QBluetoothUuid.CharacteristicType.ManufacturerNameString
此特征的值是一个UTF-8字符串,表示设备制造商的名称。
QBluetoothUuid.CharacteristicType.MeasurementInterval
测量间隔特性定义了测量之间的时间。
QBluetoothUuid.CharacteristicType.ModelNumberString
此特征的值是一个UTF-8字符串,表示设备供应商分配的型号。
QBluetoothUuid.CharacteristicType.Navigation
导航特性是一个可变长度的结构,包含一个标志字段、一个方位字段、一个航向字段,并且根据标志字段的内容。
QBluetoothUuid.CharacteristicType.NewAlert
此特性定义了警报的类别以及服务器设备中发生了多少该类别的新的警报。
QBluetoothUuid.CharacteristicType.PeripheralPreferredConnectionParameters
QBluetoothUuid.CharacteristicType.PeripheralPrivacyFlag
QBluetoothUuid.CharacteristicType.PnPID
PnP_ID特性在使用GATT特性值读取过程读取时返回其值。
QBluetoothUuid.CharacteristicType.PollenConcentration
该特性暴露了每立方米的花粉浓度计数。
QBluetoothUuid.CharacteristicType.PositionQuality
位置质量特性是一个可变长度的结构,包含一个标志字段和至少一个可选数据。
QBluetoothUuid.CharacteristicType.Pressure
压力特性表示压力传感器的值。
QBluetoothUuid.CharacteristicType.ProtocolMode
协议模式特性用于暴露与其关联的HID服务的当前协议模式,或设置HID服务的期望协议模式。
QBluetoothUuid.CharacteristicType.Rainfall
此特性以米为单位显示降雨量。
QBluetoothUuid.CharacteristicType.ReconnectionAddress
本页面包含的信息仅供参考。规范性描述包含在适用的规范中。
QBluetoothUuid.CharacteristicType.RecordAccessControlPoint
此控制点与服务一起使用,为血糖传感器患者记录数据库提供基本管理功能。
QBluetoothUuid.CharacteristicType.ReferenceTimeInformation
QBluetoothUuid.CharacteristicType.Report
报告特性用于在HID设备和HID主机之间交换数据。
QBluetoothUuid.CharacteristicType.ReportMap
作为HID服务的一部分,此特性仅存在一个实例。
QBluetoothUuid.CharacteristicType.RestingHeartRate
此特性暴露了用户可以达到的最低心率。
QBluetoothUuid.CharacteristicType.RingerControlPoint
铃声控制点特性定义了铃声的控制点。
QBluetoothUuid.CharacteristicType.RingerSetting
铃声设置特性定义了铃声的设置。
QBluetoothUuid.CharacteristicType.RSCFeature
RSC(跑步速度和节奏)特性用于描述服务器支持的功能。
QBluetoothUuid.CharacteristicType.RSCMeasurement
RSC 指的是跑步速度和步频。
QBluetoothUuid.CharacteristicType.SCControlPoint
SC控制点特性用于请求在接收设备上执行特定功能。
QBluetoothUuid.CharacteristicType.ScanIntervalWindow
扫描间隔窗口特性用于存储GATT客户端的扫描参数。
QBluetoothUuid.CharacteristicType.ScanRefresh
扫描刷新特性用于通知客户端,服务器需要在通知时将扫描间隔窗口特性写入最新值。
QBluetoothUuid.CharacteristicType.SensorLocation
传感器位置特性用于暴露传感器的位置。
QBluetoothUuid.CharacteristicType.SerialNumberString
此特征的值是一个可变长度的UTF-8字符串,表示设备特定实例的序列号。
QBluetoothUuid.CharacteristicType.ServiceChanged
QBluetoothUuid.CharacteristicType.SoftwareRevisionString
此特征的值是一个UTF-8字符串,表示设备内软件的软件版本。
QBluetoothUuid.CharacteristicType.SportTypeForAerobicAnaerobicThresholds
此特性用于根据将要进行的运动类型预设各种有氧和无氧阈值特性。
QBluetoothUuid.CharacteristicType.SupportedNewAlertCategory
服务器支持的新警报类别。
QBluetoothUuid.CharacteristicType.SupportedUnreadAlertCategory
服务器支持的未读警报类别。
QBluetoothUuid.CharacteristicType.SystemID
如果系统ID基于一个带有公司标识符(OUI)为0x123456的蓝牙设备地址,并且公司分配的标识符为0x9ABCDE,则系统标识符需要为0x123456FFFE9ABCDE。
QBluetoothUuid.CharacteristicType.Temperature
此特征的值表示以摄氏度为单位测量的温度。
QBluetoothUuid.CharacteristicType.TemperatureMeasurement
温度测量特性是一个可变长度的结构,包含一个标志字段、一个温度测量值字段,并且根据标志字段的内容,可能还包含一个时间戳字段和/或一个温度类型字段。
QBluetoothUuid.CharacteristicType.TemperatureType
温度类型特征是一个枚举,指示温度测量的位置。
QBluetoothUuid.CharacteristicType.ThreeZoneHeartRateLimits
此特征包含3区心率定义的心率区间之间的限制。
QBluetoothUuid.CharacteristicType.TimeAccuracy
QBluetoothUuid.CharacteristicType.TimeSource
QBluetoothUuid.CharacteristicType.TimeUpdateControlPoint
QBluetoothUuid.CharacteristicType.TimeUpdateState
QBluetoothUuid.CharacteristicType.TimeWithDST
QBluetoothUuid.CharacteristicType.TimeZone
QBluetoothUuid.CharacteristicType.TrueWindDirection
该特征表示风的方向,角度以顺时针方向相对于(地理)真北测量。来自东方的风表示为90度。
QBluetoothUuid.CharacteristicType.TrueWindSpeed
该特性表示风速,单位为米每秒。
QBluetoothUuid.CharacteristicType.TwoZoneHeartRateLimits
此特性包含2区心率定义的心率区间之间的限制。
QBluetoothUuid.CharacteristicType.TxPowerLevel
特征值是一个有符号的8位整数,其定点指数为0。
QBluetoothUuid.CharacteristicType.UnreadAlertStatus
此特性显示设备中特定类别中存在多少未读警报。
QBluetoothUuid.CharacteristicType.UserControlPoint
QBluetoothUuid.CharacteristicType.UserIndex
此特征表示用户的索引。
QBluetoothUuid.CharacteristicType.UVIndex
此特性暴露了紫外线指数。
QBluetoothUuid.CharacteristicType.VO2Max
此特性暴露了用户的最大摄氧量。
QBluetoothUuid.CharacteristicType.WaistCircumference
此特性表示用户的腰围,单位为米。
QBluetoothUuid.CharacteristicType.Weight
此特性以千克为单位暴露用户的体重。
QBluetoothUuid.CharacteristicType.WeightMeasurement
此特性提供与体重相关的数据,如BMI或用户的体重。
QBluetoothUuid.CharacteristicType.WeightScaleFeature
此特性描述了WeightMeasurement特性中可用的数据。
QBluetoothUuid.CharacteristicType.WindChill
此特性表示风寒温度,单位为摄氏度
- class DescriptorType¶
描述符是描述蓝牙低功耗特征值的属性。
此枚举是描述符类UUID的便利类型。此类型的值在必要时将隐式转换为
QBluetoothUuid。详细的类型规范可以在bluetooth.org上找到。常量
描述
QBluetoothUuid.DescriptorType.CharacteristicExtendedProperties
描述符定义了额外的特性属性。该描述符的存在由
ExtendedProperty标志指示。QBluetoothUuid.DescriptorType.CharacteristicUserDescription
描述符为特征值提供了一个文本用户描述。
QBluetoothUuid.DescriptorType.ClientCharacteristicConfiguration
描述符定义了特性如何由特定客户端配置。
QBluetoothUuid.DescriptorType.ServerCharacteristicConfiguration
描述符定义了如何为服务器配置可能与特征描述符关联的方式。
QBluetoothUuid.DescriptorType.CharacteristicPresentationFormat
描述符定义了特征值的格式。
QBluetoothUuid.DescriptorType.CharacteristicAggregateFormat
描述符定义了聚合特征值的格式。
QBluetoothUuid.DescriptorType.ValidRange
描述符用于定义特性的范围。包含两个必填字段(上限和下限),用于定义范围。
QBluetoothUuid.DescriptorType.ExternalReportReference
允许HID主机将来自报告映射特征值的输入报告、输出报告或特征报告数据的信息映射到用于传输相关数据的外部服务特征的Characteristic UUID。
QBluetoothUuid.DescriptorType.ReportReference
以报告ID和报告类型的形式提供的映射信息,将当前父特征映射到报告映射特征中定义的报告ID和报告类型。
QBluetoothUuid.DescriptorType.EnvironmentalSensingConfiguration
描述符定义了多个触发设置描述符如何组合。因此,此描述符与环境感知触发设置描述符一起工作,以定义在何种条件下可以通知相关的特征值。
QBluetoothUuid.DescriptorType.EnvironmentalSensingMeasurement
描述符定义了环境感知服务器的附加信息,例如预期应用、采样功能或测量周期和不确定性。
QBluetoothUuid.DescriptorType.EnvironmentalSensingTriggerSetting
描述符定义了环境感知服务器(ESS)在哪些条件下应触发通知。此类条件的示例包括达到某些阈值或计时器已过期。这意味着ESS特性支持通知。
QBluetoothUuid.DescriptorType.UnknownDescriptorType
描述符类型未知。
- __init__()¶
构造一个新的空蓝牙UUID。
- __init__(uuid)
- Parameters:
uuid –
CharacteristicType
从特征类型
uuid构造一个新的蓝牙 UUID。- __init__(uuid)
- Parameters:
uuid –
DescriptorType
从描述符类型
uuid构造一个新的蓝牙 UUID。- __init__(uuid)
- Parameters:
uuid –
ProtocolUuid
从协议
uuid构造一个新的蓝牙 UUID。- __init__(uuid)
- Parameters:
uuid –
ServiceClassUuid
从服务类
uuid构造一个新的蓝牙 UUID。- __init__(uuid)
- Parameters:
uuid –
QBluetoothUuid
- __init__(uuid)
- Parameters:
uuid –
QUuid
构造一个新的蓝牙UUID,它是
uuid的副本。- __init__(uuid)
- Parameters:
uuid – 整数
从16位的
uuid构造一个新的蓝牙UUID。- __init__(uuid)
- Parameters:
uuid – int
从32位的
uuid构造一个新的蓝牙UUID。- static characteristicToString(uuid)¶
- Parameters:
uuid –
CharacteristicType- Return type:
字符串
返回由
uuid表示的给定特征类型的人类可读和翻译后的名称。另请参阅
- static descriptorToString(uuid)¶
- Parameters:
uuid –
DescriptorType- Return type:
字符串
返回由
uuid表示的给定描述符类型的人类可读和翻译后的名称。另请参阅
- minimumSize()¶
- Return type:
整数
返回此UUID可以表示的最小字节大小。对于非空UUID,返回2、4或16。对于空UUID,返回0。
另请参阅
- __ne__(b)¶
- Parameters:
b –
QBluetoothUuid- Return type:
布尔
如果
a不等于b,则返回true,否则返回false。- __eq__(b)¶
- Parameters:
b –
QBluetoothUuid- Return type:
布尔
如果
a等于b,则返回true,否则返回false。- static protocolToString(uuid)¶
- Parameters:
uuid –
ProtocolUuid- Return type:
字符串
返回由
uuid表示的给定协议的人类可读和翻译后的名称。另请参阅
- static serviceClassToString(uuid)¶
- Parameters:
uuid –
ServiceClassUuid- Return type:
字符串
返回由
uuid表示的给定服务类的人类可读和翻译的名称。另请参阅
- toUInt16()¶
- Return type:
PyTuple
返回此UUID的16位表示。如果传递了
ok,则在转换可能时将其设置为true,否则设置为false。如果ok设置为false,则返回值未定义。- toUInt32()¶
- Return type:
PyTuple
返回此UUID的32位表示。如果传递了
ok,则在转换可能时将其设置为true,否则设置为false。如果ok设置为false,则返回值未定义。