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 get Bluetooth unique mac address ?

How to get Bluetooth unique mac address ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 1.2k 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.
  • S Offline
    S Offline
    sharath
    wrote on 18 Jan 2019, 07:28 last edited by
    #1

    Hi everyone,

    how to get the Bluetooth unique mac address on android in C++ code.

    i would appreciate your help.

    Thanks,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 18 Jan 2019, 09:17 last edited by
      #2

      Use QBluetoothDeviceInfo. It won't work on Apple platforms, though (as the documentation states).

      (Z(:^

      S 1 Reply Last reply 21 Jan 2019, 06:58
      2
      • S sierdzio
        18 Jan 2019, 09:17

        Use QBluetoothDeviceInfo. It won't work on Apple platforms, though (as the documentation states).

        S Offline
        S Offline
        sharath
        wrote on 21 Jan 2019, 06:58 last edited by
        #3

        @sierdzio Thanks for the reply. i have used it and it is giving some random address on android not unique address. could you please share one example, so that i will get clear way.

        Thanks

        S 1 Reply Last reply 21 Jan 2019, 07:14
        0
        • S sharath
          21 Jan 2019, 06:58

          @sierdzio Thanks for the reply. i have used it and it is giving some random address on android not unique address. could you please share one example, so that i will get clear way.

          Thanks

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 21 Jan 2019, 07:14 last edited by
          #4

          @sharath said in How to get Bluetooth unique mac address ?:

          it is giving some random address on android

          That's a security feature in Bluetooth 4.0+. You won't get around it (well maybe with some Android-specific APIs, I'm not sure).

          More info: https://doc.qt.io/qt-5/qlowenergycontroller.html#RemoteAddressType-enum

          (Z(:^

          1 Reply Last reply
          2
          • S Offline
            S Offline
            sharath
            wrote on 25 Jan 2019, 09:11 last edited by
            #5

            Thanks for your reply @sierdzio , Yes android doesn't give MAC address it was removed programmatic access after android 6.0.

            1 Reply Last reply
            0

            1/5

            18 Jan 2019, 07:28

            • Login

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