Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Bluetooth abd Android



  • I need to connect a Bluetooth device hc-05 to a samsung android galaxy a20 cellphone and i would like to know which classes would be more appropriate to use if those of qml or c ++? Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices. when I set hc05 as master the internal bluetooth of the Samsung you have identified it immediately.



  • @Polly said in Bluetooth abd Android:

    qml or c ++

    Both ways work. Depends on what you want to do.

    @Polly said in Bluetooth abd Android:

    Since I tried to compile an application for the Samsung Galaxy with the example ones but it didn't seem to locate any devices

    Does your app work at all (-> BluetoothDeviceDiscovery etc...)?

    Here is a good tutorial which, I think, is exactly showing what you are trying to achieve



  • @Pl45m4
    Thank you very much for all



  • I give an update of my tests.

    I tried using what was said in the video and documentation.
    And I first noticed that setting the Hc05 module in master mode is recognized by the device for which I forced the address but the software compiled on android 10 and 7 does not work, that is, it does not recognize it.
    So it's better to set it as a slave.
    At this point, using only qml code, the device is not detected by Android 7 or 10.
    On the other hand those that are written in C ++ are envied only by Android 7 while the 10 finds nothing. I also tried to compile with different versions such as 5.12,5.13,5.14,5.15 same result.


Log in to reply