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. Implementing hci calls in Qt
Forum Updated to NodeBB v4.3 + New Features

Implementing hci calls in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 396 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
    Anonymous_Banned275
    wrote on last edited by
    #1

    I am going to try to bypass Qt Bluetooth.
    I have implemented "bluetooth" library , however I am stomped how to instruct Qt to process hci calls directly.
    I am using this doc as a "template"

    https://people.csail.mit.edu/albert/bluez-intro/c404.html'

    dev_id = hci_get_route(NULL);
    '
    This above call does not compile, even after I installed libbluetooth-dev

    What am I missing to be able to use "hci" ?

    Any help would be greatly appreciated.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What exact error are you getting ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        What exact error are you getting ?

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @SGaist said in Implementing hci calls in Qt:

        Hi,

        What exact error are you getting ?

        /media/d/QT/QT_PROJECT_CAT/CAT_V1/hci_scan.cpp:60: error: 'hci_get_route' was not declared in this scope
        int device_id = hci_get_route(NULL); // Passing NULL argument will retrieve the id of first avalaibe device
        ^

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          When you want use a function you should also include the appropriate header file.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2

          • Login

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