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
Forum Updated to NodeBB v4.3 + New Features

Bluetooth Service Discovery

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 380 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