[Interest] BLE : Bonding and ble security

Kai Köhne Kai.Koehne at qt.io
Mon Aug 24 09:48:14 CEST 2020


> Von: Simon FEUTRIER <sfeutrier at bluegriot.com> 
> Gesendet: Freitag, 21. August 2020 17:31
> An: Kai Köhne <Kai.Koehne at qt.io>
> Cc: Jérôme Godbout <godboutj at amotus.ca>; interest at qt-project.org
> Betreff: Re: [Interest] BLE : Bonding and ble security
>
> Kai,
> 
> Thank you for your message! I tried and it is well recognized when building but seems to have no effect ( for example qtbluetooth-config.pri file is not changed ).
> I tried the same syntaxe that you gave me with native-win32-bluetooth and this one works perfectly. I have no idea why ^^.

Check out qtbluetooth-config_p.pri, since 'winrt_btle_no_pairing' is a private feature of Qt Bluetooth.

In latest 5.15, depending on whether I pass - feature-winrt_btle_no_pairing  -no-feature-winrt_btle_no_pairing , the define QT_FEATURE_winrt_btle_no_pairing in this file is either defined to 1 or -1 for me.

> [...]
> Le ven. 21 août 2020 à 16:43, Kai Köhne <mailto:Kai.Koehne at qt.io> a écrit :
> Hi,
>
>> Von: Interest <mailto:interest-bounces at qt-project.org> Im Auftrag von Simon FEUTRIER
>> Betreff: Re: [Interest] BLE : Bonding and ble security
>>
>> I'm trying to use "winrt_btle_no_pairing" with QT_CONFIG(feature) to change this 
>> default behaviour. But I swear I'm trying for 2 hours and I cannot achieve it. I don't see > where / how I can put this with Qt Creator.
>
> winrt_btle_no_pairing is a configure option that you have to set before building Qt (and not your application).
>
> If you do a top-level build of Qt, you can pass it to configure
>
>   configure -feature-winrt_btle_no_pairing
>
> if you do a build of just qtconnectivity, the syntax is
> 
>   qmake -- -feature-winrt_btle_no_pairing
>
>
> Hope this helps,
>
< Kai


More information about the Interest mailing list