Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Establish connection to peripheral device based on MAC address
Qt 6.11 is out! See what's new in the release blog

Establish connection to peripheral device based on MAC address

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 162 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sonus89
    wrote on last edited by
    #1

    Hi everyone!
    I am struggling with Python and Qt to connect to my BLE dongle.

    address = QtBt.QBluetoothAddress(mac_address)
    self.controller = QtBt.QLowEnergyController(address)
    address_type = QtBt.QLowEnergyController.PublicAddress
    self.controller.setRemoteAddressType(address_type)
    self.controller.connectToDevice()

    Do you might have a working example to connect ( and stay connected to a BLE dongle - based on a MAC )

    Thank you very much!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved