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. How to detect Bluetooth Connection Type?
Forum Updated to NodeBB v4.3 + New Features

How to detect Bluetooth Connection Type?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 286 Views 2 Watching
  • 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.
  • ahsan737A Offline
    ahsan737A Offline
    ahsan737
    wrote on last edited by
    #1

    Greetings,

    I am writing a Qt app that has to deal with Bluetooth SPP and BLE connection. I can communicate with a particular connection type in the individual app.
    But, I want to write a single app that should detect the connection type and connect accordingly and communicate.

    Can you please guide how to achieve this?

    Best Regards,
    Ahsan

    ekkescornerE 1 Reply Last reply
    0
    • ahsan737A ahsan737

      Greetings,

      I am writing a Qt app that has to deal with Bluetooth SPP and BLE connection. I can communicate with a particular connection type in the individual app.
      But, I want to write a single app that should detect the connection type and connect accordingly and communicate.

      Can you please guide how to achieve this?

      Best Regards,
      Ahsan

      ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

      @ahsan737 https://doc.qt.io/qt-5/qbluetoothdevicediscoveryagent.html allows you to set the Discovery Method https://doc.qt.io/qt-5/qbluetoothdevicediscoveryagent.html#DiscoveryMethod-enum
      it's the easiest way to detect classic devices vs LE Devices
      or if you discover all devices you can detect from QBluetoothDeviceInfo enum QBluetoothDeviceInfo::CoreConfiguration - check the flags to see if the device is a standard (classic) one, a BLE device or supports both

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.8 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      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