Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1824

Bluetooth LE problem with getting the Characteristic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.2.2
    • PySide
    • None
    • Win 10 Pro 21H1, anaconda environment with python 3.8.12 and pyside6==6.2.2
    • Windows
    • ac53b43656 (pyside/pyside-setup/dev) 105f57aae6 (pyside/pyside-setup/6.2) 105f57aae6 (pyside/tqtc-pyside-setup/6.2) ac53b43656 (pyside/tqtc-pyside-setup/dev) ac53b43656 (pyside/tqtc-pyside-setup/tqtc/dev) 105f57aae6 (pyside/pyside-setup/6.2.4)

    Description

      There is a problem when I use PySide6.QtBluetooth.QLowEnergyService.characteristics()

      and the console shows RuntimeWarning: CopyCppToPython(): SbkConverter::copyToPython is null for "PySide6.QtBluetooth.QLowEnergyCharacteristic".
      self.service.characteristics()

      I ** have no idea how to deal with it. I have successfully searched BLE deviced and connected, and the services is also performed well, but the characteristics failed. 

      I have changed my python version to 3.7 but still the problem

      Python 3.8
      Qt 6.3.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 10.3.1 20210422 (Red Hat 10.3.1-1)) [limited API]
      True
      pyside1824.py:28: RuntimeWarning: CopyCppToPython(): SbkConverter::copyToPython is null for "PySide6.QtBluetooth.QLowEnergyCharacteristicData".
        for characteristic in data.characteristics():
      Traceback (most recent call last):
        File "pyside1824.py", line 29, in <module>
          print(characteristic.uuid(), characteristic.value())
      AttributeError: 'NoneType' object has no attribute 'uuid'
      

      Attachments

        For Gerrit Dashboard: PYSIDE-1824
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            myth Robin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes