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 285 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.
  • A Offline
    A Offline
    ahsan737
    wrote on 27 Mar 2021, 16:16 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

    E 1 Reply Last reply 28 Mar 2021, 11:30
    0
    • A ahsan737
      27 Mar 2021, 16:16

      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

      E Offline
      E Offline
      ekkescorner
      Qt Champions 2016
      wrote on 28 Mar 2021, 11:30 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

      1/2

      27 Mar 2021, 16:16

      • Login

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