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

Bluetooth and Windows



  • Hi all -

    I've begun experimenting with Bluetooth. I'm not sure how to interpret this paragraph:

    Despite there not being a Win32 port yet, the WinRT backend is automatically used if the win32 target platform supports the required WinRT APIs. Minimal requirement is Windows 10 version 1507 with slightly improved service discovery since Windows 10 version 1607. Therefore Windows 7 and 8.x targets are excluded.

    Later it says:

    Despite the fact that the module can be built for all Qt platforms, the module is not ported to all of them. Not supported platforms such as Windows desktop employ a fake or dummy backend which is automatically selected when the platform is not supported. The dummy backend reports appropriate error messages and values which allow the Qt Bluetooth developer to detect at runtime that the current platform is not supported. The dummy backend is also selected on Linux if BlueZ development headers are not found during build time or Qt was built without Qt D-Bus support.

    These quotes are from this page.

    So, does this mean that if I'm trying to use Qt Bluetooth on a Windows 10 system, I could expect it to operate correctly? Or is there additional effort on my part?

    Thanks...


  • Lifetime Qt Champion

    Hi
    Im not sure Bluetooth is ready for Desktop use.
    Only winRT seems supported. ( win 10 apps, not desktop programs)
    However, people seems to use
    https://forum.qt.io/topic/91117/bluetooth-low-energy-windows
    for desktop apps.



  • Interesting...looks like Microsoft is deliberately making it difficult. Guess I'll use something on an Android instead.


  • Lifetime Qt Champion

    @mzimmers
    well its more like they never did implement a cross device api to handle all
    bluetooth the same. Traditionally you would use the SDk for the device to access the features
    much like other device drivers.


  • Qt Champions 2016

    good news: starting with Qt 5.13 Alpha Qt supports BT LE Devices without Pairing, but ATM from binaries only for desktop builds - for UWP you must build Qt by yourself.
    I tested with MSVC2017-64 and devices are listed, can connect, read, write. On some devices Notify doesn't work, Disconnect never works.
    you can follow https://bugreports.qt.io/browse/QTBUG-74394


Log in to reply