Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Bluetooth Service Discovery
Qt 6.11 is out! See what's new in the release blog

Bluetooth Service Discovery

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 669 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.
  • A Offline
    A Offline
    Avtansh Sharma
    wrote on last edited by Avtansh Sharma
    #1

    Hi,

    I am trying to discover a custom service from Bluetooth of Android phone but I am unable to discover it.
    However I am able to discover it by running QT app as Desktop Application on Linux(Ubuntu)

        QList<QBluetoothHostInfo> localAdapters;
    
        QBluetoothAddress adapter = QBluetoothAddress();
        //m_ServiceInfo=new QBluetoothServiceInfo();
        m_hBandDisAgent=new QBluetoothServiceDiscoveryAgent();
        m_bluetoothSocket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol);
    
      Q_ASSUME(connect(m_hBandDisAgent, SIGNAL(serviceDiscovered(QBluetoothServiceInfo)),this, SLOT(serviceDiscovered(QBluetoothServiceInfo))));
     m_hBandDisAgent->setRemoteAddress(QBluetoothAddress("B8:27:EB:54:81:BE"));
        m_hBandDisAgent->start(m_hBandDisAgent->DiscoveryMode::FullDiscovery);
    

    Regards,
    Avtansh Sharma

    1 Reply Last reply
    1

    • Login

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