QtBluetooth.pyi 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235
  1. # The PEP 484 type hints stub file for the QtBluetooth module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. # Support for QDate, QDateTime and QTime.
  29. import datetime
  30. # Convenient type aliases.
  31. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  32. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  33. class QBluetooth(PyQt6.sip.simplewrapper):
  34. class AttAccessConstraint(enum.Flag):
  35. AttAuthorizationRequired = ... # type: QBluetooth.AttAccessConstraint
  36. AttAuthenticationRequired = ... # type: QBluetooth.AttAccessConstraint
  37. AttEncryptionRequired = ... # type: QBluetooth.AttAccessConstraint
  38. class Security(enum.Flag):
  39. NoSecurity = ... # type: QBluetooth.Security
  40. Authorization = ... # type: QBluetooth.Security
  41. Authentication = ... # type: QBluetooth.Security
  42. Encryption = ... # type: QBluetooth.Security
  43. Secure = ... # type: QBluetooth.Security
  44. class QBluetoothAddress(PyQt6.sip.simplewrapper):
  45. @typing.overload
  46. def __init__(self) -> None: ...
  47. @typing.overload
  48. def __init__(self, address: int) -> None: ...
  49. @typing.overload
  50. def __init__(self, address: str|None) -> None: ...
  51. @typing.overload
  52. def __init__(self, other: 'QBluetoothAddress') -> None: ...
  53. def __ge__(self, b: 'QBluetoothAddress') -> bool: ...
  54. def __lt__(self, b: 'QBluetoothAddress') -> bool: ...
  55. def __eq__(self, other: object): ...
  56. def __ne__(self, other: object): ...
  57. def __hash__(self) -> int: ...
  58. def toString(self) -> str: ...
  59. def toUInt64(self) -> int: ...
  60. def clear(self) -> None: ...
  61. def isNull(self) -> bool: ...
  62. class QBluetoothDeviceDiscoveryAgent(QtCore.QObject):
  63. class DiscoveryMethod(enum.Flag):
  64. NoMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod
  65. ClassicMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod
  66. LowEnergyMethod = ... # type: QBluetoothDeviceDiscoveryAgent.DiscoveryMethod
  67. class Error(enum.Enum):
  68. NoError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  69. InputOutputError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  70. PoweredOffError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  71. InvalidBluetoothAdapterError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  72. UnsupportedPlatformError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  73. UnsupportedDiscoveryMethod = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  74. LocationServiceTurnedOffError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  75. MissingPermissionsError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  76. UnknownError = ... # type: QBluetoothDeviceDiscoveryAgent.Error
  77. @typing.overload
  78. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  79. @typing.overload
  80. def __init__(self, deviceAdapter: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ...
  81. @staticmethod
  82. def supportedDiscoveryMethods() -> 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod': ...
  83. def lowEnergyDiscoveryTimeout(self) -> int: ...
  84. def setLowEnergyDiscoveryTimeout(self, msTimeout: int) -> None: ...
  85. deviceUpdated: typing.ClassVar[QtCore.pyqtSignal]
  86. canceled: typing.ClassVar[QtCore.pyqtSignal]
  87. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  88. finished: typing.ClassVar[QtCore.pyqtSignal]
  89. deviceDiscovered: typing.ClassVar[QtCore.pyqtSignal]
  90. def stop(self) -> None: ...
  91. @typing.overload
  92. def start(self) -> None: ...
  93. @typing.overload
  94. def start(self, method: 'QBluetoothDeviceDiscoveryAgent.DiscoveryMethod') -> None: ...
  95. def discoveredDevices(self) -> list['QBluetoothDeviceInfo']: ...
  96. def errorString(self) -> str: ...
  97. def error(self) -> 'QBluetoothDeviceDiscoveryAgent.Error': ...
  98. def isActive(self) -> bool: ...
  99. class QBluetoothDeviceInfo(PyQt6.sip.simplewrapper):
  100. class Field(enum.Flag):
  101. None_ = ... # type: QBluetoothDeviceInfo.Field
  102. RSSI = ... # type: QBluetoothDeviceInfo.Field
  103. ManufacturerData = ... # type: QBluetoothDeviceInfo.Field
  104. ServiceData = ... # type: QBluetoothDeviceInfo.Field
  105. All = ... # type: QBluetoothDeviceInfo.Field
  106. class CoreConfiguration(enum.Flag):
  107. UnknownCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration
  108. LowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration
  109. BaseRateCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration
  110. BaseRateAndLowEnergyCoreConfiguration = ... # type: QBluetoothDeviceInfo.CoreConfiguration
  111. class ServiceClass(enum.Flag):
  112. NoService = ... # type: QBluetoothDeviceInfo.ServiceClass
  113. PositioningService = ... # type: QBluetoothDeviceInfo.ServiceClass
  114. NetworkingService = ... # type: QBluetoothDeviceInfo.ServiceClass
  115. RenderingService = ... # type: QBluetoothDeviceInfo.ServiceClass
  116. CapturingService = ... # type: QBluetoothDeviceInfo.ServiceClass
  117. ObjectTransferService = ... # type: QBluetoothDeviceInfo.ServiceClass
  118. AudioService = ... # type: QBluetoothDeviceInfo.ServiceClass
  119. TelephonyService = ... # type: QBluetoothDeviceInfo.ServiceClass
  120. InformationService = ... # type: QBluetoothDeviceInfo.ServiceClass
  121. AllServices = ... # type: QBluetoothDeviceInfo.ServiceClass
  122. class MinorHealthClass(enum.Enum):
  123. UncategorizedHealthDevice = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  124. HealthBloodPressureMonitor = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  125. HealthThermometer = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  126. HealthWeightScale = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  127. HealthGlucoseMeter = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  128. HealthPulseOximeter = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  129. HealthDataDisplay = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  130. HealthStepCounter = ... # type: QBluetoothDeviceInfo.MinorHealthClass
  131. class MinorToyClass(enum.Enum):
  132. UncategorizedToy = ... # type: QBluetoothDeviceInfo.MinorToyClass
  133. ToyRobot = ... # type: QBluetoothDeviceInfo.MinorToyClass
  134. ToyVehicle = ... # type: QBluetoothDeviceInfo.MinorToyClass
  135. ToyDoll = ... # type: QBluetoothDeviceInfo.MinorToyClass
  136. ToyController = ... # type: QBluetoothDeviceInfo.MinorToyClass
  137. ToyGame = ... # type: QBluetoothDeviceInfo.MinorToyClass
  138. class MinorWearableClass(enum.Enum):
  139. UncategorizedWearableDevice = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  140. WearableWristWatch = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  141. WearablePager = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  142. WearableJacket = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  143. WearableHelmet = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  144. WearableGlasses = ... # type: QBluetoothDeviceInfo.MinorWearableClass
  145. class MinorImagingClass(enum.Enum):
  146. UncategorizedImagingDevice = ... # type: QBluetoothDeviceInfo.MinorImagingClass
  147. ImageDisplay = ... # type: QBluetoothDeviceInfo.MinorImagingClass
  148. ImageCamera = ... # type: QBluetoothDeviceInfo.MinorImagingClass
  149. ImageScanner = ... # type: QBluetoothDeviceInfo.MinorImagingClass
  150. ImagePrinter = ... # type: QBluetoothDeviceInfo.MinorImagingClass
  151. class MinorPeripheralClass(enum.Enum):
  152. UncategorizedPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  153. KeyboardPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  154. PointingDevicePeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  155. KeyboardWithPointingDevicePeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  156. JoystickPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  157. GamepadPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  158. RemoteControlPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  159. SensingDevicePeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  160. DigitizerTabletPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  161. CardReaderPeripheral = ... # type: QBluetoothDeviceInfo.MinorPeripheralClass
  162. class MinorAudioVideoClass(enum.Enum):
  163. UncategorizedAudioVideoDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  164. WearableHeadsetDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  165. HandsFreeDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  166. Microphone = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  167. Loudspeaker = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  168. Headphones = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  169. PortableAudioDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  170. CarAudio = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  171. SetTopBox = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  172. HiFiAudioDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  173. Vcr = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  174. VideoCamera = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  175. Camcorder = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  176. VideoMonitor = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  177. VideoDisplayAndLoudspeaker = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  178. VideoConferencing = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  179. GamingDevice = ... # type: QBluetoothDeviceInfo.MinorAudioVideoClass
  180. class MinorNetworkClass(enum.Enum):
  181. NetworkFullService = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  182. NetworkLoadFactorOne = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  183. NetworkLoadFactorTwo = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  184. NetworkLoadFactorThree = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  185. NetworkLoadFactorFour = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  186. NetworkLoadFactorFive = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  187. NetworkLoadFactorSix = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  188. NetworkNoService = ... # type: QBluetoothDeviceInfo.MinorNetworkClass
  189. class MinorPhoneClass(enum.Enum):
  190. UncategorizedPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  191. CellularPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  192. CordlessPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  193. SmartPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  194. WiredModemOrVoiceGatewayPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  195. CommonIsdnAccessPhone = ... # type: QBluetoothDeviceInfo.MinorPhoneClass
  196. class MinorComputerClass(enum.Enum):
  197. UncategorizedComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  198. DesktopComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  199. ServerComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  200. LaptopComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  201. HandheldClamShellComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  202. HandheldComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  203. WearableComputer = ... # type: QBluetoothDeviceInfo.MinorComputerClass
  204. class MinorMiscellaneousClass(enum.Enum):
  205. UncategorizedMiscellaneous = ... # type: QBluetoothDeviceInfo.MinorMiscellaneousClass
  206. class MajorDeviceClass(enum.Enum):
  207. MiscellaneousDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  208. ComputerDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  209. PhoneDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  210. NetworkDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  211. AudioVideoDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  212. PeripheralDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  213. ImagingDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  214. WearableDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  215. ToyDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  216. HealthDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  217. UncategorizedDevice = ... # type: QBluetoothDeviceInfo.MajorDeviceClass
  218. @typing.overload
  219. def __init__(self) -> None: ...
  220. @typing.overload
  221. def __init__(self, address: QBluetoothAddress, name: str|None, classOfDevice: int) -> None: ...
  222. @typing.overload
  223. def __init__(self, uuid: 'QBluetoothUuid', name: str|None, classOfDevice: int) -> None: ...
  224. @typing.overload
  225. def __init__(self, other: 'QBluetoothDeviceInfo') -> None: ...
  226. def __eq__(self, other: object): ...
  227. def __ne__(self, other: object): ...
  228. def setServiceData(self, serviceId: 'QBluetoothUuid', data: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ...
  229. @typing.overload
  230. def serviceData(self) -> dict['QBluetoothUuid', QtCore.QByteArray]: ...
  231. @typing.overload
  232. def serviceData(self, serviceId: 'QBluetoothUuid') -> QtCore.QByteArray: ...
  233. def serviceIds(self) -> list['QBluetoothUuid']: ...
  234. def setName(self, name: str|None) -> None: ...
  235. def setManufacturerData(self, manufacturerId: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ...
  236. @typing.overload
  237. def manufacturerData(self) -> dict[int, QtCore.QByteArray]: ...
  238. @typing.overload
  239. def manufacturerData(self, manufacturerId: int) -> QtCore.QByteArray: ...
  240. def manufacturerIds(self) -> list[int]: ...
  241. def deviceUuid(self) -> 'QBluetoothUuid': ...
  242. def setDeviceUuid(self, uuid: 'QBluetoothUuid') -> None: ...
  243. def coreConfigurations(self) -> 'QBluetoothDeviceInfo.CoreConfiguration': ...
  244. def setCoreConfigurations(self, coreConfigs: 'QBluetoothDeviceInfo.CoreConfiguration') -> None: ...
  245. def serviceUuids(self) -> list['QBluetoothUuid']: ...
  246. def setServiceUuids(self, uuids: collections.abc.Iterable['QBluetoothUuid']) -> None: ...
  247. def setRssi(self, signal: int) -> None: ...
  248. def rssi(self) -> int: ...
  249. def minorDeviceClass(self) -> int: ...
  250. def majorDeviceClass(self) -> 'QBluetoothDeviceInfo.MajorDeviceClass': ...
  251. def serviceClasses(self) -> 'QBluetoothDeviceInfo.ServiceClass': ...
  252. def name(self) -> str: ...
  253. def address(self) -> QBluetoothAddress: ...
  254. def setCached(self, cached: bool) -> None: ...
  255. def isCached(self) -> bool: ...
  256. def isValid(self) -> bool: ...
  257. class QBluetoothHostInfo(PyQt6.sip.simplewrapper):
  258. @typing.overload
  259. def __init__(self) -> None: ...
  260. @typing.overload
  261. def __init__(self, other: 'QBluetoothHostInfo') -> None: ...
  262. def __eq__(self, other: object): ...
  263. def __ne__(self, other: object): ...
  264. def setName(self, name: str|None) -> None: ...
  265. def name(self) -> str: ...
  266. def setAddress(self, address: QBluetoothAddress) -> None: ...
  267. def address(self) -> QBluetoothAddress: ...
  268. class QBluetoothLocalDevice(QtCore.QObject):
  269. class Error(enum.Enum):
  270. NoError = ... # type: QBluetoothLocalDevice.Error
  271. PairingError = ... # type: QBluetoothLocalDevice.Error
  272. MissingPermissionsError = ... # type: QBluetoothLocalDevice.Error
  273. UnknownError = ... # type: QBluetoothLocalDevice.Error
  274. class HostMode(enum.Enum):
  275. HostPoweredOff = ... # type: QBluetoothLocalDevice.HostMode
  276. HostConnectable = ... # type: QBluetoothLocalDevice.HostMode
  277. HostDiscoverable = ... # type: QBluetoothLocalDevice.HostMode
  278. HostDiscoverableLimitedInquiry = ... # type: QBluetoothLocalDevice.HostMode
  279. class Pairing(enum.Enum):
  280. Unpaired = ... # type: QBluetoothLocalDevice.Pairing
  281. Paired = ... # type: QBluetoothLocalDevice.Pairing
  282. AuthorizedPaired = ... # type: QBluetoothLocalDevice.Pairing
  283. @typing.overload
  284. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  285. @typing.overload
  286. def __init__(self, address: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ...
  287. deviceDisconnected: typing.ClassVar[QtCore.pyqtSignal]
  288. deviceConnected: typing.ClassVar[QtCore.pyqtSignal]
  289. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  290. pairingFinished: typing.ClassVar[QtCore.pyqtSignal]
  291. hostModeStateChanged: typing.ClassVar[QtCore.pyqtSignal]
  292. def connectedDevices(self) -> list[QBluetoothAddress]: ...
  293. @staticmethod
  294. def allDevices() -> list[QBluetoothHostInfo]: ...
  295. def address(self) -> QBluetoothAddress: ...
  296. def name(self) -> str: ...
  297. def powerOn(self) -> None: ...
  298. def hostMode(self) -> 'QBluetoothLocalDevice.HostMode': ...
  299. def setHostMode(self, mode: 'QBluetoothLocalDevice.HostMode') -> None: ...
  300. def pairingStatus(self, address: QBluetoothAddress) -> 'QBluetoothLocalDevice.Pairing': ...
  301. def requestPairing(self, address: QBluetoothAddress, pairing: 'QBluetoothLocalDevice.Pairing') -> None: ...
  302. def isValid(self) -> bool: ...
  303. class QBluetoothServer(QtCore.QObject):
  304. class Error(enum.Enum):
  305. NoError = ... # type: QBluetoothServer.Error
  306. UnknownError = ... # type: QBluetoothServer.Error
  307. PoweredOffError = ... # type: QBluetoothServer.Error
  308. InputOutputError = ... # type: QBluetoothServer.Error
  309. ServiceAlreadyRegisteredError = ... # type: QBluetoothServer.Error
  310. UnsupportedProtocolError = ... # type: QBluetoothServer.Error
  311. MissingPermissionsError = ... # type: QBluetoothServer.Error
  312. def __init__(self, serverType: 'QBluetoothServiceInfo.Protocol', parent: QtCore.QObject|None = ...) -> None: ...
  313. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  314. newConnection: typing.ClassVar[QtCore.pyqtSignal]
  315. def error(self) -> 'QBluetoothServer.Error': ...
  316. def serverType(self) -> 'QBluetoothServiceInfo.Protocol': ...
  317. def securityFlags(self) -> QBluetooth.Security: ...
  318. def setSecurityFlags(self, security: QBluetooth.Security) -> None: ...
  319. def serverPort(self) -> int: ...
  320. def serverAddress(self) -> QBluetoothAddress: ...
  321. def nextPendingConnection(self) -> 'QBluetoothSocket|None': ...
  322. def hasPendingConnections(self) -> bool: ...
  323. def maxPendingConnections(self) -> int: ...
  324. def setMaxPendingConnections(self, numConnections: int) -> None: ...
  325. def isListening(self) -> bool: ...
  326. @typing.overload
  327. def listen(self, address: QBluetoothAddress = ..., port: int = ...) -> bool: ...
  328. @typing.overload
  329. def listen(self, uuid: 'QBluetoothUuid', serviceName: str|None = ...) -> 'QBluetoothServiceInfo': ...
  330. def close(self) -> None: ...
  331. class QBluetoothServiceDiscoveryAgent(QtCore.QObject):
  332. class DiscoveryMode(enum.Enum):
  333. MinimalDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode
  334. FullDiscovery = ... # type: QBluetoothServiceDiscoveryAgent.DiscoveryMode
  335. class Error(enum.Enum):
  336. NoError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  337. InputOutputError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  338. PoweredOffError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  339. InvalidBluetoothAdapterError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  340. MissingPermissionsError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  341. UnknownError = ... # type: QBluetoothServiceDiscoveryAgent.Error
  342. @typing.overload
  343. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  344. @typing.overload
  345. def __init__(self, deviceAdapter: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> None: ...
  346. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  347. canceled: typing.ClassVar[QtCore.pyqtSignal]
  348. finished: typing.ClassVar[QtCore.pyqtSignal]
  349. serviceDiscovered: typing.ClassVar[QtCore.pyqtSignal]
  350. def clear(self) -> None: ...
  351. def stop(self) -> None: ...
  352. def start(self, mode: 'QBluetoothServiceDiscoveryAgent.DiscoveryMode' = ...) -> None: ...
  353. def remoteAddress(self) -> QBluetoothAddress: ...
  354. def setRemoteAddress(self, address: QBluetoothAddress) -> bool: ...
  355. def uuidFilter(self) -> list['QBluetoothUuid']: ...
  356. @typing.overload
  357. def setUuidFilter(self, uuids: collections.abc.Iterable['QBluetoothUuid']) -> None: ...
  358. @typing.overload
  359. def setUuidFilter(self, uuid: 'QBluetoothUuid') -> None: ...
  360. def discoveredServices(self) -> list['QBluetoothServiceInfo']: ...
  361. def errorString(self) -> str: ...
  362. def error(self) -> 'QBluetoothServiceDiscoveryAgent.Error': ...
  363. def isActive(self) -> bool: ...
  364. class QBluetoothServiceInfo(PyQt6.sip.simplewrapper):
  365. class Protocol(enum.Enum):
  366. UnknownProtocol = ... # type: QBluetoothServiceInfo.Protocol
  367. L2capProtocol = ... # type: QBluetoothServiceInfo.Protocol
  368. RfcommProtocol = ... # type: QBluetoothServiceInfo.Protocol
  369. class AttributeId(enum.Enum):
  370. ServiceRecordHandle = ... # type: QBluetoothServiceInfo.AttributeId
  371. ServiceClassIds = ... # type: QBluetoothServiceInfo.AttributeId
  372. ServiceRecordState = ... # type: QBluetoothServiceInfo.AttributeId
  373. ServiceId = ... # type: QBluetoothServiceInfo.AttributeId
  374. ProtocolDescriptorList = ... # type: QBluetoothServiceInfo.AttributeId
  375. BrowseGroupList = ... # type: QBluetoothServiceInfo.AttributeId
  376. LanguageBaseAttributeIdList = ... # type: QBluetoothServiceInfo.AttributeId
  377. ServiceInfoTimeToLive = ... # type: QBluetoothServiceInfo.AttributeId
  378. ServiceAvailability = ... # type: QBluetoothServiceInfo.AttributeId
  379. BluetoothProfileDescriptorList = ... # type: QBluetoothServiceInfo.AttributeId
  380. DocumentationUrl = ... # type: QBluetoothServiceInfo.AttributeId
  381. ClientExecutableUrl = ... # type: QBluetoothServiceInfo.AttributeId
  382. IconUrl = ... # type: QBluetoothServiceInfo.AttributeId
  383. AdditionalProtocolDescriptorList = ... # type: QBluetoothServiceInfo.AttributeId
  384. PrimaryLanguageBase = ... # type: QBluetoothServiceInfo.AttributeId
  385. ServiceName = ... # type: QBluetoothServiceInfo.AttributeId
  386. ServiceDescription = ... # type: QBluetoothServiceInfo.AttributeId
  387. ServiceProvider = ... # type: QBluetoothServiceInfo.AttributeId
  388. @typing.overload
  389. def __init__(self) -> None: ...
  390. @typing.overload
  391. def __init__(self, other: 'QBluetoothServiceInfo') -> None: ...
  392. def serviceClassUuids(self) -> list['QBluetoothUuid']: ...
  393. def serviceUuid(self) -> 'QBluetoothUuid': ...
  394. def setServiceUuid(self, uuid: 'QBluetoothUuid') -> None: ...
  395. def serviceAvailability(self) -> int: ...
  396. def setServiceAvailability(self, availability: int) -> None: ...
  397. def serviceProvider(self) -> str: ...
  398. def setServiceProvider(self, provider: str|None) -> None: ...
  399. def serviceDescription(self) -> str: ...
  400. def setServiceDescription(self, description: str|None) -> None: ...
  401. def serviceName(self) -> str: ...
  402. def setServiceName(self, name: str|None) -> None: ...
  403. @typing.overload
  404. def setAttribute(self, attributeId: int, value: 'QBluetoothUuid') -> None: ...
  405. @typing.overload
  406. def setAttribute(self, attributeId: int, value: collections.abc.Iterable[typing.Any]) -> None: ...
  407. @typing.overload
  408. def setAttribute(self, attributeId: int, value: typing.Any) -> None: ...
  409. def unregisterService(self) -> bool: ...
  410. def registerService(self, localAdapter: QBluetoothAddress = ...) -> bool: ...
  411. def isRegistered(self) -> bool: ...
  412. def protocolDescriptor(self, protocol: 'QBluetoothUuid.ProtocolUuid') -> list[typing.Any]: ...
  413. def serverChannel(self) -> int: ...
  414. def protocolServiceMultiplexer(self) -> int: ...
  415. def socketProtocol(self) -> 'QBluetoothServiceInfo.Protocol': ...
  416. def removeAttribute(self, attributeId: int) -> None: ...
  417. def contains(self, attributeId: int) -> bool: ...
  418. def attributes(self) -> list[int]: ...
  419. def attribute(self, attributeId: int) -> typing.Any: ...
  420. def device(self) -> QBluetoothDeviceInfo: ...
  421. def setDevice(self, info: QBluetoothDeviceInfo) -> None: ...
  422. def isComplete(self) -> bool: ...
  423. def isValid(self) -> bool: ...
  424. class QBluetoothSocket(QtCore.QIODevice):
  425. class SocketError(enum.Enum):
  426. NoSocketError = ... # type: QBluetoothSocket.SocketError
  427. UnknownSocketError = ... # type: QBluetoothSocket.SocketError
  428. RemoteHostClosedError = ... # type: QBluetoothSocket.SocketError
  429. HostNotFoundError = ... # type: QBluetoothSocket.SocketError
  430. ServiceNotFoundError = ... # type: QBluetoothSocket.SocketError
  431. NetworkError = ... # type: QBluetoothSocket.SocketError
  432. UnsupportedProtocolError = ... # type: QBluetoothSocket.SocketError
  433. OperationError = ... # type: QBluetoothSocket.SocketError
  434. MissingPermissionsError = ... # type: QBluetoothSocket.SocketError
  435. class SocketState(enum.Enum):
  436. UnconnectedState = ... # type: QBluetoothSocket.SocketState
  437. ServiceLookupState = ... # type: QBluetoothSocket.SocketState
  438. ConnectingState = ... # type: QBluetoothSocket.SocketState
  439. ConnectedState = ... # type: QBluetoothSocket.SocketState
  440. BoundState = ... # type: QBluetoothSocket.SocketState
  441. ClosingState = ... # type: QBluetoothSocket.SocketState
  442. ListeningState = ... # type: QBluetoothSocket.SocketState
  443. @typing.overload
  444. def __init__(self, socketType: QBluetoothServiceInfo.Protocol, parent: QtCore.QObject|None = ...) -> None: ...
  445. @typing.overload
  446. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  447. def preferredSecurityFlags(self) -> QBluetooth.Security: ...
  448. def setPreferredSecurityFlags(self, flags: QBluetooth.Security) -> None: ...
  449. def doDeviceDiscovery(self, service: QBluetoothServiceInfo, openMode: QtCore.QIODeviceBase.OpenModeFlag) -> None: ...
  450. def setSocketError(self, error: 'QBluetoothSocket.SocketError') -> None: ...
  451. def setSocketState(self, state: 'QBluetoothSocket.SocketState') -> None: ...
  452. def writeData(self, data: PyQt6.sip.array[bytes]) -> int: ...
  453. def readData(self, maxlen: int) -> bytes: ...
  454. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  455. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  456. disconnected: typing.ClassVar[QtCore.pyqtSignal]
  457. connected: typing.ClassVar[QtCore.pyqtSignal]
  458. def errorString(self) -> str: ...
  459. def error(self) -> 'QBluetoothSocket.SocketError': ...
  460. def state(self) -> 'QBluetoothSocket.SocketState': ...
  461. def socketType(self) -> QBluetoothServiceInfo.Protocol: ...
  462. def socketDescriptor(self) -> int: ...
  463. def setSocketDescriptor(self, socketDescriptor: int, socketType: QBluetoothServiceInfo.Protocol, state: 'QBluetoothSocket.SocketState' = ..., mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> bool: ...
  464. def peerPort(self) -> int: ...
  465. def peerAddress(self) -> QBluetoothAddress: ...
  466. def peerName(self) -> str: ...
  467. def localPort(self) -> int: ...
  468. def localAddress(self) -> QBluetoothAddress: ...
  469. def localName(self) -> str: ...
  470. def disconnectFromService(self) -> None: ...
  471. @typing.overload
  472. def connectToService(self, address: QBluetoothAddress, uuid: 'QBluetoothUuid.ServiceClassUuid', mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  473. @typing.overload
  474. def connectToService(self, address: QBluetoothAddress, port: int, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  475. @typing.overload
  476. def connectToService(self, address: QBluetoothAddress, uuid: 'QBluetoothUuid', mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  477. @typing.overload
  478. def connectToService(self, service: QBluetoothServiceInfo, mode: QtCore.QIODeviceBase.OpenModeFlag = ...) -> None: ...
  479. def canReadLine(self) -> bool: ...
  480. def bytesToWrite(self) -> int: ...
  481. def bytesAvailable(self) -> int: ...
  482. def isSequential(self) -> bool: ...
  483. def close(self) -> None: ...
  484. def abort(self) -> None: ...
  485. class QBluetoothUuid(QtCore.QUuid):
  486. class DescriptorType(enum.Enum):
  487. UnknownDescriptorType = ... # type: QBluetoothUuid.DescriptorType
  488. CharacteristicExtendedProperties = ... # type: QBluetoothUuid.DescriptorType
  489. CharacteristicUserDescription = ... # type: QBluetoothUuid.DescriptorType
  490. ClientCharacteristicConfiguration = ... # type: QBluetoothUuid.DescriptorType
  491. ServerCharacteristicConfiguration = ... # type: QBluetoothUuid.DescriptorType
  492. CharacteristicPresentationFormat = ... # type: QBluetoothUuid.DescriptorType
  493. CharacteristicAggregateFormat = ... # type: QBluetoothUuid.DescriptorType
  494. ValidRange = ... # type: QBluetoothUuid.DescriptorType
  495. ExternalReportReference = ... # type: QBluetoothUuid.DescriptorType
  496. ReportReference = ... # type: QBluetoothUuid.DescriptorType
  497. EnvironmentalSensingConfiguration = ... # type: QBluetoothUuid.DescriptorType
  498. EnvironmentalSensingMeasurement = ... # type: QBluetoothUuid.DescriptorType
  499. EnvironmentalSensingTriggerSetting = ... # type: QBluetoothUuid.DescriptorType
  500. class CharacteristicType(enum.Enum):
  501. DeviceName = ... # type: QBluetoothUuid.CharacteristicType
  502. Appearance = ... # type: QBluetoothUuid.CharacteristicType
  503. PeripheralPrivacyFlag = ... # type: QBluetoothUuid.CharacteristicType
  504. ReconnectionAddress = ... # type: QBluetoothUuid.CharacteristicType
  505. PeripheralPreferredConnectionParameters = ... # type: QBluetoothUuid.CharacteristicType
  506. ServiceChanged = ... # type: QBluetoothUuid.CharacteristicType
  507. AlertLevel = ... # type: QBluetoothUuid.CharacteristicType
  508. TxPowerLevel = ... # type: QBluetoothUuid.CharacteristicType
  509. DateTime = ... # type: QBluetoothUuid.CharacteristicType
  510. DayOfWeek = ... # type: QBluetoothUuid.CharacteristicType
  511. DayDateTime = ... # type: QBluetoothUuid.CharacteristicType
  512. ExactTime256 = ... # type: QBluetoothUuid.CharacteristicType
  513. DSTOffset = ... # type: QBluetoothUuid.CharacteristicType
  514. TimeZone = ... # type: QBluetoothUuid.CharacteristicType
  515. LocalTimeInformation = ... # type: QBluetoothUuid.CharacteristicType
  516. TimeWithDST = ... # type: QBluetoothUuid.CharacteristicType
  517. TimeAccuracy = ... # type: QBluetoothUuid.CharacteristicType
  518. TimeSource = ... # type: QBluetoothUuid.CharacteristicType
  519. ReferenceTimeInformation = ... # type: QBluetoothUuid.CharacteristicType
  520. TimeUpdateControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  521. TimeUpdateState = ... # type: QBluetoothUuid.CharacteristicType
  522. GlucoseMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  523. BatteryLevel = ... # type: QBluetoothUuid.CharacteristicType
  524. TemperatureMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  525. TemperatureType = ... # type: QBluetoothUuid.CharacteristicType
  526. IntermediateTemperature = ... # type: QBluetoothUuid.CharacteristicType
  527. MeasurementInterval = ... # type: QBluetoothUuid.CharacteristicType
  528. BootKeyboardInputReport = ... # type: QBluetoothUuid.CharacteristicType
  529. SystemID = ... # type: QBluetoothUuid.CharacteristicType
  530. ModelNumberString = ... # type: QBluetoothUuid.CharacteristicType
  531. SerialNumberString = ... # type: QBluetoothUuid.CharacteristicType
  532. FirmwareRevisionString = ... # type: QBluetoothUuid.CharacteristicType
  533. HardwareRevisionString = ... # type: QBluetoothUuid.CharacteristicType
  534. SoftwareRevisionString = ... # type: QBluetoothUuid.CharacteristicType
  535. ManufacturerNameString = ... # type: QBluetoothUuid.CharacteristicType
  536. IEEE1107320601RegulatoryCertificationDataList = ... # type: QBluetoothUuid.CharacteristicType
  537. CurrentTime = ... # type: QBluetoothUuid.CharacteristicType
  538. MagneticDeclination = ... # type: QBluetoothUuid.CharacteristicType
  539. ScanRefresh = ... # type: QBluetoothUuid.CharacteristicType
  540. BootKeyboardOutputReport = ... # type: QBluetoothUuid.CharacteristicType
  541. BootMouseInputReport = ... # type: QBluetoothUuid.CharacteristicType
  542. GlucoseMeasurementContext = ... # type: QBluetoothUuid.CharacteristicType
  543. BloodPressureMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  544. IntermediateCuffPressure = ... # type: QBluetoothUuid.CharacteristicType
  545. HeartRateMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  546. BodySensorLocation = ... # type: QBluetoothUuid.CharacteristicType
  547. HeartRateControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  548. AlertStatus = ... # type: QBluetoothUuid.CharacteristicType
  549. RingerControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  550. RingerSetting = ... # type: QBluetoothUuid.CharacteristicType
  551. AlertCategoryIDBitMask = ... # type: QBluetoothUuid.CharacteristicType
  552. AlertCategoryID = ... # type: QBluetoothUuid.CharacteristicType
  553. AlertNotificationControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  554. UnreadAlertStatus = ... # type: QBluetoothUuid.CharacteristicType
  555. NewAlert = ... # type: QBluetoothUuid.CharacteristicType
  556. SupportedNewAlertCategory = ... # type: QBluetoothUuid.CharacteristicType
  557. SupportedUnreadAlertCategory = ... # type: QBluetoothUuid.CharacteristicType
  558. BloodPressureFeature = ... # type: QBluetoothUuid.CharacteristicType
  559. HIDInformation = ... # type: QBluetoothUuid.CharacteristicType
  560. ReportMap = ... # type: QBluetoothUuid.CharacteristicType
  561. HIDControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  562. Report = ... # type: QBluetoothUuid.CharacteristicType
  563. ProtocolMode = ... # type: QBluetoothUuid.CharacteristicType
  564. ScanIntervalWindow = ... # type: QBluetoothUuid.CharacteristicType
  565. PnPID = ... # type: QBluetoothUuid.CharacteristicType
  566. GlucoseFeature = ... # type: QBluetoothUuid.CharacteristicType
  567. RecordAccessControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  568. RSCMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  569. RSCFeature = ... # type: QBluetoothUuid.CharacteristicType
  570. SCControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  571. CSCMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  572. CSCFeature = ... # type: QBluetoothUuid.CharacteristicType
  573. SensorLocation = ... # type: QBluetoothUuid.CharacteristicType
  574. CyclingPowerMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  575. CyclingPowerVector = ... # type: QBluetoothUuid.CharacteristicType
  576. CyclingPowerFeature = ... # type: QBluetoothUuid.CharacteristicType
  577. CyclingPowerControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  578. LocationAndSpeed = ... # type: QBluetoothUuid.CharacteristicType
  579. Navigation = ... # type: QBluetoothUuid.CharacteristicType
  580. PositionQuality = ... # type: QBluetoothUuid.CharacteristicType
  581. LNFeature = ... # type: QBluetoothUuid.CharacteristicType
  582. LNControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  583. Elevation = ... # type: QBluetoothUuid.CharacteristicType
  584. Pressure = ... # type: QBluetoothUuid.CharacteristicType
  585. Temperature = ... # type: QBluetoothUuid.CharacteristicType
  586. Humidity = ... # type: QBluetoothUuid.CharacteristicType
  587. TrueWindSpeed = ... # type: QBluetoothUuid.CharacteristicType
  588. TrueWindDirection = ... # type: QBluetoothUuid.CharacteristicType
  589. ApparentWindSpeed = ... # type: QBluetoothUuid.CharacteristicType
  590. ApparentWindDirection = ... # type: QBluetoothUuid.CharacteristicType
  591. GustFactor = ... # type: QBluetoothUuid.CharacteristicType
  592. PollenConcentration = ... # type: QBluetoothUuid.CharacteristicType
  593. UVIndex = ... # type: QBluetoothUuid.CharacteristicType
  594. Irradiance = ... # type: QBluetoothUuid.CharacteristicType
  595. Rainfall = ... # type: QBluetoothUuid.CharacteristicType
  596. WindChill = ... # type: QBluetoothUuid.CharacteristicType
  597. HeatIndex = ... # type: QBluetoothUuid.CharacteristicType
  598. DewPoint = ... # type: QBluetoothUuid.CharacteristicType
  599. DescriptorValueChanged = ... # type: QBluetoothUuid.CharacteristicType
  600. AerobicHeartRateLowerLimit = ... # type: QBluetoothUuid.CharacteristicType
  601. AerobicThreshold = ... # type: QBluetoothUuid.CharacteristicType
  602. Age = ... # type: QBluetoothUuid.CharacteristicType
  603. AnaerobicHeartRateLowerLimit = ... # type: QBluetoothUuid.CharacteristicType
  604. AnaerobicHeartRateUpperLimit = ... # type: QBluetoothUuid.CharacteristicType
  605. AnaerobicThreshold = ... # type: QBluetoothUuid.CharacteristicType
  606. AerobicHeartRateUpperLimit = ... # type: QBluetoothUuid.CharacteristicType
  607. DateOfBirth = ... # type: QBluetoothUuid.CharacteristicType
  608. DateOfThresholdAssessment = ... # type: QBluetoothUuid.CharacteristicType
  609. EmailAddress = ... # type: QBluetoothUuid.CharacteristicType
  610. FatBurnHeartRateLowerLimit = ... # type: QBluetoothUuid.CharacteristicType
  611. FatBurnHeartRateUpperLimit = ... # type: QBluetoothUuid.CharacteristicType
  612. FirstName = ... # type: QBluetoothUuid.CharacteristicType
  613. FiveZoneHeartRateLimits = ... # type: QBluetoothUuid.CharacteristicType
  614. Gender = ... # type: QBluetoothUuid.CharacteristicType
  615. HeartRateMax = ... # type: QBluetoothUuid.CharacteristicType
  616. Height = ... # type: QBluetoothUuid.CharacteristicType
  617. HipCircumference = ... # type: QBluetoothUuid.CharacteristicType
  618. LastName = ... # type: QBluetoothUuid.CharacteristicType
  619. MaximumRecommendedHeartRate = ... # type: QBluetoothUuid.CharacteristicType
  620. RestingHeartRate = ... # type: QBluetoothUuid.CharacteristicType
  621. SportTypeForAerobicAnaerobicThresholds = ... # type: QBluetoothUuid.CharacteristicType
  622. ThreeZoneHeartRateLimits = ... # type: QBluetoothUuid.CharacteristicType
  623. TwoZoneHeartRateLimits = ... # type: QBluetoothUuid.CharacteristicType
  624. VO2Max = ... # type: QBluetoothUuid.CharacteristicType
  625. WaistCircumference = ... # type: QBluetoothUuid.CharacteristicType
  626. Weight = ... # type: QBluetoothUuid.CharacteristicType
  627. DatabaseChangeIncrement = ... # type: QBluetoothUuid.CharacteristicType
  628. UserIndex = ... # type: QBluetoothUuid.CharacteristicType
  629. BodyCompositionFeature = ... # type: QBluetoothUuid.CharacteristicType
  630. BodyCompositionMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  631. WeightMeasurement = ... # type: QBluetoothUuid.CharacteristicType
  632. WeightScaleFeature = ... # type: QBluetoothUuid.CharacteristicType
  633. UserControlPoint = ... # type: QBluetoothUuid.CharacteristicType
  634. MagneticFluxDensity2D = ... # type: QBluetoothUuid.CharacteristicType
  635. MagneticFluxDensity3D = ... # type: QBluetoothUuid.CharacteristicType
  636. Language = ... # type: QBluetoothUuid.CharacteristicType
  637. BarometricPressureTrend = ... # type: QBluetoothUuid.CharacteristicType
  638. class ServiceClassUuid(enum.Enum):
  639. ServiceDiscoveryServer = ... # type: QBluetoothUuid.ServiceClassUuid
  640. BrowseGroupDescriptor = ... # type: QBluetoothUuid.ServiceClassUuid
  641. PublicBrowseGroup = ... # type: QBluetoothUuid.ServiceClassUuid
  642. SerialPort = ... # type: QBluetoothUuid.ServiceClassUuid
  643. LANAccessUsingPPP = ... # type: QBluetoothUuid.ServiceClassUuid
  644. DialupNetworking = ... # type: QBluetoothUuid.ServiceClassUuid
  645. IrMCSync = ... # type: QBluetoothUuid.ServiceClassUuid
  646. ObexObjectPush = ... # type: QBluetoothUuid.ServiceClassUuid
  647. OBEXFileTransfer = ... # type: QBluetoothUuid.ServiceClassUuid
  648. IrMCSyncCommand = ... # type: QBluetoothUuid.ServiceClassUuid
  649. Headset = ... # type: QBluetoothUuid.ServiceClassUuid
  650. AudioSource = ... # type: QBluetoothUuid.ServiceClassUuid
  651. AudioSink = ... # type: QBluetoothUuid.ServiceClassUuid
  652. AV_RemoteControlTarget = ... # type: QBluetoothUuid.ServiceClassUuid
  653. AdvancedAudioDistribution = ... # type: QBluetoothUuid.ServiceClassUuid
  654. AV_RemoteControl = ... # type: QBluetoothUuid.ServiceClassUuid
  655. AV_RemoteControlController = ... # type: QBluetoothUuid.ServiceClassUuid
  656. HeadsetAG = ... # type: QBluetoothUuid.ServiceClassUuid
  657. PANU = ... # type: QBluetoothUuid.ServiceClassUuid
  658. NAP = ... # type: QBluetoothUuid.ServiceClassUuid
  659. GN = ... # type: QBluetoothUuid.ServiceClassUuid
  660. DirectPrinting = ... # type: QBluetoothUuid.ServiceClassUuid
  661. ReferencePrinting = ... # type: QBluetoothUuid.ServiceClassUuid
  662. BasicImage = ... # type: QBluetoothUuid.ServiceClassUuid
  663. ImagingResponder = ... # type: QBluetoothUuid.ServiceClassUuid
  664. ImagingAutomaticArchive = ... # type: QBluetoothUuid.ServiceClassUuid
  665. ImagingReferenceObjects = ... # type: QBluetoothUuid.ServiceClassUuid
  666. Handsfree = ... # type: QBluetoothUuid.ServiceClassUuid
  667. HandsfreeAudioGateway = ... # type: QBluetoothUuid.ServiceClassUuid
  668. DirectPrintingReferenceObjectsService = ... # type: QBluetoothUuid.ServiceClassUuid
  669. ReflectedUI = ... # type: QBluetoothUuid.ServiceClassUuid
  670. BasicPrinting = ... # type: QBluetoothUuid.ServiceClassUuid
  671. PrintingStatus = ... # type: QBluetoothUuid.ServiceClassUuid
  672. HumanInterfaceDeviceService = ... # type: QBluetoothUuid.ServiceClassUuid
  673. HardcopyCableReplacement = ... # type: QBluetoothUuid.ServiceClassUuid
  674. HCRPrint = ... # type: QBluetoothUuid.ServiceClassUuid
  675. HCRScan = ... # type: QBluetoothUuid.ServiceClassUuid
  676. SIMAccess = ... # type: QBluetoothUuid.ServiceClassUuid
  677. PhonebookAccessPCE = ... # type: QBluetoothUuid.ServiceClassUuid
  678. PhonebookAccessPSE = ... # type: QBluetoothUuid.ServiceClassUuid
  679. PhonebookAccess = ... # type: QBluetoothUuid.ServiceClassUuid
  680. HeadsetHS = ... # type: QBluetoothUuid.ServiceClassUuid
  681. MessageAccessServer = ... # type: QBluetoothUuid.ServiceClassUuid
  682. MessageNotificationServer = ... # type: QBluetoothUuid.ServiceClassUuid
  683. MessageAccessProfile = ... # type: QBluetoothUuid.ServiceClassUuid
  684. GNSS = ... # type: QBluetoothUuid.ServiceClassUuid
  685. GNSSServer = ... # type: QBluetoothUuid.ServiceClassUuid
  686. Display3D = ... # type: QBluetoothUuid.ServiceClassUuid
  687. Glasses3D = ... # type: QBluetoothUuid.ServiceClassUuid
  688. Synchronization3D = ... # type: QBluetoothUuid.ServiceClassUuid
  689. MPSProfile = ... # type: QBluetoothUuid.ServiceClassUuid
  690. MPSService = ... # type: QBluetoothUuid.ServiceClassUuid
  691. PnPInformation = ... # type: QBluetoothUuid.ServiceClassUuid
  692. GenericNetworking = ... # type: QBluetoothUuid.ServiceClassUuid
  693. GenericFileTransfer = ... # type: QBluetoothUuid.ServiceClassUuid
  694. GenericAudio = ... # type: QBluetoothUuid.ServiceClassUuid
  695. GenericTelephony = ... # type: QBluetoothUuid.ServiceClassUuid
  696. VideoSource = ... # type: QBluetoothUuid.ServiceClassUuid
  697. VideoSink = ... # type: QBluetoothUuid.ServiceClassUuid
  698. VideoDistribution = ... # type: QBluetoothUuid.ServiceClassUuid
  699. HDP = ... # type: QBluetoothUuid.ServiceClassUuid
  700. HDPSource = ... # type: QBluetoothUuid.ServiceClassUuid
  701. HDPSink = ... # type: QBluetoothUuid.ServiceClassUuid
  702. GenericAccess = ... # type: QBluetoothUuid.ServiceClassUuid
  703. GenericAttribute = ... # type: QBluetoothUuid.ServiceClassUuid
  704. ImmediateAlert = ... # type: QBluetoothUuid.ServiceClassUuid
  705. LinkLoss = ... # type: QBluetoothUuid.ServiceClassUuid
  706. TxPower = ... # type: QBluetoothUuid.ServiceClassUuid
  707. CurrentTimeService = ... # type: QBluetoothUuid.ServiceClassUuid
  708. ReferenceTimeUpdateService = ... # type: QBluetoothUuid.ServiceClassUuid
  709. NextDSTChangeService = ... # type: QBluetoothUuid.ServiceClassUuid
  710. Glucose = ... # type: QBluetoothUuid.ServiceClassUuid
  711. HealthThermometer = ... # type: QBluetoothUuid.ServiceClassUuid
  712. DeviceInformation = ... # type: QBluetoothUuid.ServiceClassUuid
  713. HeartRate = ... # type: QBluetoothUuid.ServiceClassUuid
  714. PhoneAlertStatusService = ... # type: QBluetoothUuid.ServiceClassUuid
  715. BatteryService = ... # type: QBluetoothUuid.ServiceClassUuid
  716. BloodPressure = ... # type: QBluetoothUuid.ServiceClassUuid
  717. AlertNotificationService = ... # type: QBluetoothUuid.ServiceClassUuid
  718. HumanInterfaceDevice = ... # type: QBluetoothUuid.ServiceClassUuid
  719. ScanParameters = ... # type: QBluetoothUuid.ServiceClassUuid
  720. RunningSpeedAndCadence = ... # type: QBluetoothUuid.ServiceClassUuid
  721. CyclingSpeedAndCadence = ... # type: QBluetoothUuid.ServiceClassUuid
  722. CyclingPower = ... # type: QBluetoothUuid.ServiceClassUuid
  723. LocationAndNavigation = ... # type: QBluetoothUuid.ServiceClassUuid
  724. EnvironmentalSensing = ... # type: QBluetoothUuid.ServiceClassUuid
  725. BodyComposition = ... # type: QBluetoothUuid.ServiceClassUuid
  726. UserData = ... # type: QBluetoothUuid.ServiceClassUuid
  727. WeightScale = ... # type: QBluetoothUuid.ServiceClassUuid
  728. BondManagement = ... # type: QBluetoothUuid.ServiceClassUuid
  729. ContinuousGlucoseMonitoring = ... # type: QBluetoothUuid.ServiceClassUuid
  730. class ProtocolUuid(enum.Enum):
  731. Sdp = ... # type: QBluetoothUuid.ProtocolUuid
  732. Udp = ... # type: QBluetoothUuid.ProtocolUuid
  733. Rfcomm = ... # type: QBluetoothUuid.ProtocolUuid
  734. Tcp = ... # type: QBluetoothUuid.ProtocolUuid
  735. TcsBin = ... # type: QBluetoothUuid.ProtocolUuid
  736. TcsAt = ... # type: QBluetoothUuid.ProtocolUuid
  737. Att = ... # type: QBluetoothUuid.ProtocolUuid
  738. Obex = ... # type: QBluetoothUuid.ProtocolUuid
  739. Ip = ... # type: QBluetoothUuid.ProtocolUuid
  740. Ftp = ... # type: QBluetoothUuid.ProtocolUuid
  741. Http = ... # type: QBluetoothUuid.ProtocolUuid
  742. Wsp = ... # type: QBluetoothUuid.ProtocolUuid
  743. Bnep = ... # type: QBluetoothUuid.ProtocolUuid
  744. Upnp = ... # type: QBluetoothUuid.ProtocolUuid
  745. Hidp = ... # type: QBluetoothUuid.ProtocolUuid
  746. HardcopyControlChannel = ... # type: QBluetoothUuid.ProtocolUuid
  747. HardcopyDataChannel = ... # type: QBluetoothUuid.ProtocolUuid
  748. HardcopyNotification = ... # type: QBluetoothUuid.ProtocolUuid
  749. Avctp = ... # type: QBluetoothUuid.ProtocolUuid
  750. Avdtp = ... # type: QBluetoothUuid.ProtocolUuid
  751. Cmtp = ... # type: QBluetoothUuid.ProtocolUuid
  752. UdiCPlain = ... # type: QBluetoothUuid.ProtocolUuid
  753. McapControlChannel = ... # type: QBluetoothUuid.ProtocolUuid
  754. McapDataChannel = ... # type: QBluetoothUuid.ProtocolUuid
  755. L2cap = ... # type: QBluetoothUuid.ProtocolUuid
  756. @typing.overload
  757. def __init__(self) -> None: ...
  758. @typing.overload
  759. def __init__(self, uuid: 'QBluetoothUuid.ProtocolUuid') -> None: ...
  760. @typing.overload
  761. def __init__(self, uuid: 'QBluetoothUuid.ServiceClassUuid') -> None: ...
  762. @typing.overload
  763. def __init__(self, uuid: 'QBluetoothUuid.CharacteristicType') -> None: ...
  764. @typing.overload
  765. def __init__(self, uuid: 'QBluetoothUuid.DescriptorType') -> None: ...
  766. @typing.overload
  767. def __init__(self, uuid: int) -> None: ...
  768. @typing.overload
  769. def __init__(self, uuid: tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int], order: QtCore.QSysInfo.Endian = ...) -> None: ...
  770. @typing.overload
  771. def __init__(self, uuid: str|None) -> None: ...
  772. @typing.overload
  773. def __init__(self, uuid: 'QBluetoothUuid') -> None: ...
  774. @typing.overload
  775. def __init__(self, uuid: QtCore.QUuid) -> None: ...
  776. def __eq__(self, other: object): ...
  777. def __ne__(self, other: object): ...
  778. def __hash__(self) -> int: ...
  779. @staticmethod
  780. def descriptorToString(uuid: 'QBluetoothUuid.DescriptorType') -> str: ...
  781. @staticmethod
  782. def characteristicToString(uuid: 'QBluetoothUuid.CharacteristicType') -> str: ...
  783. @staticmethod
  784. def protocolToString(uuid: 'QBluetoothUuid.ProtocolUuid') -> str: ...
  785. @staticmethod
  786. def serviceClassToString(uuid: 'QBluetoothUuid.ServiceClassUuid') -> str: ...
  787. def toUInt128(self) -> tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int]: ...
  788. def toUInt32(self) -> typing.Tuple[int, bool]: ...
  789. def toUInt16(self) -> typing.Tuple[int, bool]: ...
  790. def minimumSize(self) -> int: ...
  791. class QLowEnergyAdvertisingData(PyQt6.sip.simplewrapper):
  792. class Discoverability(enum.Enum):
  793. DiscoverabilityNone = ... # type: QLowEnergyAdvertisingData.Discoverability
  794. DiscoverabilityLimited = ... # type: QLowEnergyAdvertisingData.Discoverability
  795. DiscoverabilityGeneral = ... # type: QLowEnergyAdvertisingData.Discoverability
  796. @typing.overload
  797. def __init__(self) -> None: ...
  798. @typing.overload
  799. def __init__(self, other: 'QLowEnergyAdvertisingData') -> None: ...
  800. def __eq__(self, other: object): ...
  801. def __ne__(self, other: object): ...
  802. def swap(self, other: 'QLowEnergyAdvertisingData') -> None: ...
  803. def rawData(self) -> QtCore.QByteArray: ...
  804. def setRawData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  805. def services(self) -> list[QBluetoothUuid]: ...
  806. def setServices(self, services: collections.abc.Iterable[QBluetoothUuid]) -> None: ...
  807. def discoverability(self) -> 'QLowEnergyAdvertisingData.Discoverability': ...
  808. def setDiscoverability(self, mode: 'QLowEnergyAdvertisingData.Discoverability') -> None: ...
  809. def includePowerLevel(self) -> bool: ...
  810. def setIncludePowerLevel(self, doInclude: bool) -> None: ...
  811. def manufacturerData(self) -> QtCore.QByteArray: ...
  812. def manufacturerId(self) -> int: ...
  813. def setManufacturerData(self, id: int, data: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  814. @staticmethod
  815. def invalidManufacturerId() -> int: ...
  816. def localName(self) -> str: ...
  817. def setLocalName(self, name: str|None) -> None: ...
  818. class QLowEnergyAdvertisingParameters(PyQt6.sip.simplewrapper):
  819. class FilterPolicy(enum.Enum):
  820. IgnoreWhiteList = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy
  821. UseWhiteListForScanning = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy
  822. UseWhiteListForConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy
  823. UseWhiteListForScanningAndConnecting = ... # type: QLowEnergyAdvertisingParameters.FilterPolicy
  824. class Mode(enum.Enum):
  825. AdvInd = ... # type: QLowEnergyAdvertisingParameters.Mode
  826. AdvScanInd = ... # type: QLowEnergyAdvertisingParameters.Mode
  827. AdvNonConnInd = ... # type: QLowEnergyAdvertisingParameters.Mode
  828. class AddressInfo(PyQt6.sip.simplewrapper):
  829. address = ... # type: QBluetoothAddress
  830. type = ... # type: 'QLowEnergyController.RemoteAddressType'
  831. @typing.overload
  832. def __init__(self, addr: QBluetoothAddress, t: 'QLowEnergyController.RemoteAddressType') -> None: ...
  833. @typing.overload
  834. def __init__(self) -> None: ...
  835. @typing.overload
  836. def __init__(self, a0: 'QLowEnergyAdvertisingParameters.AddressInfo') -> None: ...
  837. def __eq__(self, other: object): ...
  838. def __ne__(self, other: object): ...
  839. @typing.overload
  840. def __init__(self) -> None: ...
  841. @typing.overload
  842. def __init__(self, other: 'QLowEnergyAdvertisingParameters') -> None: ...
  843. def __eq__(self, other: object): ...
  844. def __ne__(self, other: object): ...
  845. def swap(self, other: 'QLowEnergyAdvertisingParameters') -> None: ...
  846. def maximumInterval(self) -> int: ...
  847. def minimumInterval(self) -> int: ...
  848. def setInterval(self, minimum: int, maximum: int) -> None: ...
  849. def filterPolicy(self) -> 'QLowEnergyAdvertisingParameters.FilterPolicy': ...
  850. def whiteList(self) -> list['QLowEnergyAdvertisingParameters.AddressInfo']: ...
  851. def setWhiteList(self, whiteList: collections.abc.Iterable['QLowEnergyAdvertisingParameters.AddressInfo'], policy: 'QLowEnergyAdvertisingParameters.FilterPolicy') -> None: ...
  852. def mode(self) -> 'QLowEnergyAdvertisingParameters.Mode': ...
  853. def setMode(self, mode: 'QLowEnergyAdvertisingParameters.Mode') -> None: ...
  854. class QLowEnergyCharacteristic(PyQt6.sip.simplewrapper):
  855. class PropertyType(enum.Flag):
  856. Unknown = ... # type: QLowEnergyCharacteristic.PropertyType
  857. Broadcasting = ... # type: QLowEnergyCharacteristic.PropertyType
  858. Read = ... # type: QLowEnergyCharacteristic.PropertyType
  859. WriteNoResponse = ... # type: QLowEnergyCharacteristic.PropertyType
  860. Write = ... # type: QLowEnergyCharacteristic.PropertyType
  861. Notify = ... # type: QLowEnergyCharacteristic.PropertyType
  862. Indicate = ... # type: QLowEnergyCharacteristic.PropertyType
  863. WriteSigned = ... # type: QLowEnergyCharacteristic.PropertyType
  864. ExtendedProperty = ... # type: QLowEnergyCharacteristic.PropertyType
  865. CCCDDisable = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview
  866. CCCDEnableIndication = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview
  867. CCCDEnableNotification = ... # type: QtCore.QByteArray|bytes|bytearray|memoryview
  868. @typing.overload
  869. def __init__(self) -> None: ...
  870. @typing.overload
  871. def __init__(self, other: 'QLowEnergyCharacteristic') -> None: ...
  872. def __eq__(self, other: object): ...
  873. def __ne__(self, other: object): ...
  874. def clientCharacteristicConfiguration(self) -> 'QLowEnergyDescriptor': ...
  875. def isValid(self) -> bool: ...
  876. def descriptors(self) -> list['QLowEnergyDescriptor']: ...
  877. def descriptor(self, uuid: QBluetoothUuid) -> 'QLowEnergyDescriptor': ...
  878. def properties(self) -> 'QLowEnergyCharacteristic.PropertyType': ...
  879. def value(self) -> QtCore.QByteArray: ...
  880. def uuid(self) -> QBluetoothUuid: ...
  881. def name(self) -> str: ...
  882. class QLowEnergyCharacteristicData(PyQt6.sip.simplewrapper):
  883. @typing.overload
  884. def __init__(self) -> None: ...
  885. @typing.overload
  886. def __init__(self, other: 'QLowEnergyCharacteristicData') -> None: ...
  887. def __eq__(self, other: object): ...
  888. def __ne__(self, other: object): ...
  889. def swap(self, other: 'QLowEnergyCharacteristicData') -> None: ...
  890. def isValid(self) -> bool: ...
  891. def maximumValueLength(self) -> int: ...
  892. def minimumValueLength(self) -> int: ...
  893. def setValueLength(self, minimum: int, maximum: int) -> None: ...
  894. def writeConstraints(self) -> QBluetooth.AttAccessConstraint: ...
  895. def setWriteConstraints(self, constraints: QBluetooth.AttAccessConstraint) -> None: ...
  896. def readConstraints(self) -> QBluetooth.AttAccessConstraint: ...
  897. def setReadConstraints(self, constraints: QBluetooth.AttAccessConstraint) -> None: ...
  898. def addDescriptor(self, descriptor: 'QLowEnergyDescriptorData') -> None: ...
  899. def setDescriptors(self, descriptors: collections.abc.Iterable['QLowEnergyDescriptorData']) -> None: ...
  900. def descriptors(self) -> list['QLowEnergyDescriptorData']: ...
  901. def setProperties(self, properties: QLowEnergyCharacteristic.PropertyType) -> None: ...
  902. def properties(self) -> QLowEnergyCharacteristic.PropertyType: ...
  903. def setValue(self, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  904. def value(self) -> QtCore.QByteArray: ...
  905. def setUuid(self, uuid: QBluetoothUuid) -> None: ...
  906. def uuid(self) -> QBluetoothUuid: ...
  907. class QLowEnergyConnectionParameters(PyQt6.sip.simplewrapper):
  908. @typing.overload
  909. def __init__(self) -> None: ...
  910. @typing.overload
  911. def __init__(self, other: 'QLowEnergyConnectionParameters') -> None: ...
  912. def __eq__(self, other: object): ...
  913. def __ne__(self, other: object): ...
  914. def swap(self, other: 'QLowEnergyConnectionParameters') -> None: ...
  915. def supervisionTimeout(self) -> int: ...
  916. def setSupervisionTimeout(self, timeout: int) -> None: ...
  917. def latency(self) -> int: ...
  918. def setLatency(self, latency: int) -> None: ...
  919. def maximumInterval(self) -> float: ...
  920. def minimumInterval(self) -> float: ...
  921. def setIntervalRange(self, minimum: float, maximum: float) -> None: ...
  922. class QLowEnergyController(QtCore.QObject):
  923. class Role(enum.Enum):
  924. CentralRole = ... # type: QLowEnergyController.Role
  925. PeripheralRole = ... # type: QLowEnergyController.Role
  926. class RemoteAddressType(enum.Enum):
  927. PublicAddress = ... # type: QLowEnergyController.RemoteAddressType
  928. RandomAddress = ... # type: QLowEnergyController.RemoteAddressType
  929. class ControllerState(enum.Enum):
  930. UnconnectedState = ... # type: QLowEnergyController.ControllerState
  931. ConnectingState = ... # type: QLowEnergyController.ControllerState
  932. ConnectedState = ... # type: QLowEnergyController.ControllerState
  933. DiscoveringState = ... # type: QLowEnergyController.ControllerState
  934. DiscoveredState = ... # type: QLowEnergyController.ControllerState
  935. ClosingState = ... # type: QLowEnergyController.ControllerState
  936. AdvertisingState = ... # type: QLowEnergyController.ControllerState
  937. class Error(enum.Enum):
  938. NoError = ... # type: QLowEnergyController.Error
  939. UnknownError = ... # type: QLowEnergyController.Error
  940. UnknownRemoteDeviceError = ... # type: QLowEnergyController.Error
  941. NetworkError = ... # type: QLowEnergyController.Error
  942. InvalidBluetoothAdapterError = ... # type: QLowEnergyController.Error
  943. ConnectionError = ... # type: QLowEnergyController.Error
  944. AdvertisingError = ... # type: QLowEnergyController.Error
  945. RemoteHostClosedError = ... # type: QLowEnergyController.Error
  946. AuthorizationError = ... # type: QLowEnergyController.Error
  947. MissingPermissionsError = ... # type: QLowEnergyController.Error
  948. RssiReadError = ... # type: QLowEnergyController.Error
  949. rssiRead: typing.ClassVar[QtCore.pyqtSignal]
  950. def readRssi(self) -> None: ...
  951. def remoteDeviceUuid(self) -> QBluetoothUuid: ...
  952. def role(self) -> 'QLowEnergyController.Role': ...
  953. def requestConnectionUpdate(self, parameters: QLowEnergyConnectionParameters) -> None: ...
  954. def addService(self, service: 'QLowEnergyServiceData', parent: QtCore.QObject|None = ...) -> 'QLowEnergyService|None': ...
  955. def stopAdvertising(self) -> None: ...
  956. def startAdvertising(self, parameters: QLowEnergyAdvertisingParameters, advertisingData: QLowEnergyAdvertisingData, scanResponseData: QLowEnergyAdvertisingData = ...) -> None: ...
  957. @typing.overload
  958. @staticmethod
  959. def createPeripheral(localDevice: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ...
  960. @typing.overload
  961. @staticmethod
  962. def createPeripheral(parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ...
  963. @typing.overload
  964. @staticmethod
  965. def createCentral(remoteDevice: QBluetoothDeviceInfo, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ...
  966. @typing.overload
  967. @staticmethod
  968. def createCentral(remoteDevice: QBluetoothDeviceInfo, localDevice: QBluetoothAddress, parent: QtCore.QObject|None = ...) -> 'QLowEnergyController|None': ...
  969. mtuChanged: typing.ClassVar[QtCore.pyqtSignal]
  970. connectionUpdated: typing.ClassVar[QtCore.pyqtSignal]
  971. discoveryFinished: typing.ClassVar[QtCore.pyqtSignal]
  972. serviceDiscovered: typing.ClassVar[QtCore.pyqtSignal]
  973. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  974. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  975. disconnected: typing.ClassVar[QtCore.pyqtSignal]
  976. connected: typing.ClassVar[QtCore.pyqtSignal]
  977. def mtu(self) -> int: ...
  978. def remoteName(self) -> str: ...
  979. def errorString(self) -> str: ...
  980. def error(self) -> 'QLowEnergyController.Error': ...
  981. def createServiceObject(self, service: QBluetoothUuid, parent: QtCore.QObject|None = ...) -> 'QLowEnergyService|None': ...
  982. def services(self) -> list[QBluetoothUuid]: ...
  983. def discoverServices(self) -> None: ...
  984. def disconnectFromDevice(self) -> None: ...
  985. def connectToDevice(self) -> None: ...
  986. def setRemoteAddressType(self, type: 'QLowEnergyController.RemoteAddressType') -> None: ...
  987. def remoteAddressType(self) -> 'QLowEnergyController.RemoteAddressType': ...
  988. def state(self) -> 'QLowEnergyController.ControllerState': ...
  989. def remoteAddress(self) -> QBluetoothAddress: ...
  990. def localAddress(self) -> QBluetoothAddress: ...
  991. class QLowEnergyDescriptor(PyQt6.sip.simplewrapper):
  992. @typing.overload
  993. def __init__(self) -> None: ...
  994. @typing.overload
  995. def __init__(self, other: 'QLowEnergyDescriptor') -> None: ...
  996. def __eq__(self, other: object): ...
  997. def __ne__(self, other: object): ...
  998. def type(self) -> QBluetoothUuid.DescriptorType: ...
  999. def name(self) -> str: ...
  1000. def uuid(self) -> QBluetoothUuid: ...
  1001. def value(self) -> QtCore.QByteArray: ...
  1002. def isValid(self) -> bool: ...
  1003. class QLowEnergyDescriptorData(PyQt6.sip.simplewrapper):
  1004. @typing.overload
  1005. def __init__(self) -> None: ...
  1006. @typing.overload
  1007. def __init__(self, uuid: QBluetoothUuid, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  1008. @typing.overload
  1009. def __init__(self, other: 'QLowEnergyDescriptorData') -> None: ...
  1010. def __eq__(self, other: object): ...
  1011. def __ne__(self, other: object): ...
  1012. def swap(self, other: 'QLowEnergyDescriptorData') -> None: ...
  1013. def writeConstraints(self) -> QBluetooth.AttAccessConstraint: ...
  1014. def isWritable(self) -> bool: ...
  1015. def setWritePermissions(self, writable: bool, constraints: QBluetooth.AttAccessConstraint = ...) -> None: ...
  1016. def readConstraints(self) -> QBluetooth.AttAccessConstraint: ...
  1017. def isReadable(self) -> bool: ...
  1018. def setReadPermissions(self, readable: bool, constraints: QBluetooth.AttAccessConstraint = ...) -> None: ...
  1019. def isValid(self) -> bool: ...
  1020. def setUuid(self, uuid: QBluetoothUuid) -> None: ...
  1021. def uuid(self) -> QBluetoothUuid: ...
  1022. def setValue(self, value: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  1023. def value(self) -> QtCore.QByteArray: ...
  1024. class QLowEnergyService(QtCore.QObject):
  1025. class WriteMode(enum.Enum):
  1026. WriteWithResponse = ... # type: QLowEnergyService.WriteMode
  1027. WriteWithoutResponse = ... # type: QLowEnergyService.WriteMode
  1028. WriteSigned = ... # type: QLowEnergyService.WriteMode
  1029. class ServiceState(enum.Enum):
  1030. InvalidService = ... # type: QLowEnergyService.ServiceState
  1031. DiscoveryRequired = ... # type: QLowEnergyService.ServiceState
  1032. ServiceDiscovered = ... # type: QLowEnergyService.ServiceState
  1033. LocalService = ... # type: QLowEnergyService.ServiceState
  1034. RemoteService = ... # type: QLowEnergyService.ServiceState
  1035. RemoteServiceDiscovering = ... # type: QLowEnergyService.ServiceState
  1036. RemoteServiceDiscovered = ... # type: QLowEnergyService.ServiceState
  1037. DiscoveringService = ... # type: QLowEnergyService.ServiceState
  1038. class ServiceError(enum.Enum):
  1039. NoError = ... # type: QLowEnergyService.ServiceError
  1040. OperationError = ... # type: QLowEnergyService.ServiceError
  1041. CharacteristicWriteError = ... # type: QLowEnergyService.ServiceError
  1042. DescriptorWriteError = ... # type: QLowEnergyService.ServiceError
  1043. CharacteristicReadError = ... # type: QLowEnergyService.ServiceError
  1044. DescriptorReadError = ... # type: QLowEnergyService.ServiceError
  1045. UnknownError = ... # type: QLowEnergyService.ServiceError
  1046. class ServiceType(enum.Flag):
  1047. PrimaryService = ... # type: QLowEnergyService.ServiceType
  1048. IncludedService = ... # type: QLowEnergyService.ServiceType
  1049. class DiscoveryMode(enum.Enum):
  1050. FullDiscovery = ... # type: QLowEnergyService.DiscoveryMode
  1051. SkipValueDiscovery = ... # type: QLowEnergyService.DiscoveryMode
  1052. descriptorRead: typing.ClassVar[QtCore.pyqtSignal]
  1053. characteristicRead: typing.ClassVar[QtCore.pyqtSignal]
  1054. def readDescriptor(self, descriptor: QLowEnergyDescriptor) -> None: ...
  1055. def readCharacteristic(self, characteristic: QLowEnergyCharacteristic) -> None: ...
  1056. errorOccurred: typing.ClassVar[QtCore.pyqtSignal]
  1057. descriptorWritten: typing.ClassVar[QtCore.pyqtSignal]
  1058. characteristicWritten: typing.ClassVar[QtCore.pyqtSignal]
  1059. characteristicChanged: typing.ClassVar[QtCore.pyqtSignal]
  1060. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  1061. def writeDescriptor(self, descriptor: QLowEnergyDescriptor, newValue: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  1062. def writeCharacteristic(self, characteristic: QLowEnergyCharacteristic, newValue: QtCore.QByteArray|bytes|bytearray|memoryview, mode: 'QLowEnergyService.WriteMode' = ...) -> None: ...
  1063. @typing.overload
  1064. def contains(self, characteristic: QLowEnergyCharacteristic) -> bool: ...
  1065. @typing.overload
  1066. def contains(self, descriptor: QLowEnergyDescriptor) -> bool: ...
  1067. def error(self) -> 'QLowEnergyService.ServiceError': ...
  1068. def discoverDetails(self, mode: 'QLowEnergyService.DiscoveryMode' = ...) -> None: ...
  1069. def serviceName(self) -> str: ...
  1070. def serviceUuid(self) -> QBluetoothUuid: ...
  1071. def characteristics(self) -> list[QLowEnergyCharacteristic]: ...
  1072. def characteristic(self, uuid: QBluetoothUuid) -> QLowEnergyCharacteristic: ...
  1073. def state(self) -> 'QLowEnergyService.ServiceState': ...
  1074. def type(self) -> 'QLowEnergyService.ServiceType': ...
  1075. def includedServices(self) -> list[QBluetoothUuid]: ...
  1076. class QLowEnergyServiceData(PyQt6.sip.simplewrapper):
  1077. class ServiceType(enum.Enum):
  1078. ServiceTypePrimary = ... # type: QLowEnergyServiceData.ServiceType
  1079. ServiceTypeSecondary = ... # type: QLowEnergyServiceData.ServiceType
  1080. @typing.overload
  1081. def __init__(self) -> None: ...
  1082. @typing.overload
  1083. def __init__(self, other: 'QLowEnergyServiceData') -> None: ...
  1084. def __eq__(self, other: object): ...
  1085. def __ne__(self, other: object): ...
  1086. def swap(self, other: 'QLowEnergyServiceData') -> None: ...
  1087. def isValid(self) -> bool: ...
  1088. def addCharacteristic(self, characteristic: QLowEnergyCharacteristicData) -> None: ...
  1089. def setCharacteristics(self, characteristics: collections.abc.Iterable[QLowEnergyCharacteristicData]) -> None: ...
  1090. def characteristics(self) -> list[QLowEnergyCharacteristicData]: ...
  1091. def addIncludedService(self, service: QLowEnergyService|None) -> None: ...
  1092. def setIncludedServices(self, services: collections.abc.Iterable[QLowEnergyService]) -> None: ...
  1093. def includedServices(self) -> list[QLowEnergyService]: ...
  1094. def setUuid(self, uuid: QBluetoothUuid) -> None: ...
  1095. def uuid(self) -> QBluetoothUuid: ...
  1096. def setType(self, type: 'QLowEnergyServiceData.ServiceType') -> None: ...
  1097. def type(self) -> 'QLowEnergyServiceData.ServiceType': ...