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