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. How to discovery connected BLE device on MacOS
Forum Updated to NodeBB v4.3 + New Features

How to discovery connected BLE device on MacOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 139 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.
  • M Offline
    M Offline
    MrGuo
    wrote on last edited by
    #1

    Hi,
    qt 5.10.1, the program can not discovery BLE device which is already connected to macos, but can find the device when it's disconnected,
    Don't know why, and code is very much like the lowenergyscanner example:

      QBluetoothDeviceDiscoveryAgent *m_deviceDiscoveryAgent;
      m_deviceDiscoveryAgent = new QBluetoothDeviceDiscoveryAgent(this);
      m_deviceDiscoveryAgent->setLowEnergyDiscoveryTimeout(5000);
    
    ....
    
      m_deviceDiscoveryAgent->start(QBluetoothDeviceDiscoveryAgent::LowEnergyMethod);
    

    Any ideas on how to discovery the connected devices?

    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