From e03ac5fa38b51275dd62668a04ef279243299cd4 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Thu, 22 Feb 2018 09:17:51 +0100 Subject: Clarify Bluetooth support on Win32 when WinRT API is available Change-Id: I3ab1a8a474d33d3831e125e7f2760cc464c2437f Reviewed-by: Oliver Wolff --- src/bluetooth/doc/src/bluetooth-index.qdoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bluetooth/doc/src/bluetooth-index.qdoc b/src/bluetooth/doc/src/bluetooth-index.qdoc index 9cb5f3b2..2a4f72bc 100644 --- a/src/bluetooth/doc/src/bluetooth-index.qdoc +++ b/src/bluetooth/doc/src/bluetooth-index.qdoc @@ -43,7 +43,7 @@ Currently, the API is supported on the following platforms: \li \l {Qt for Linux/X11}{Linux (BlueZ 4.x/5.x)} \li \l {Qt for OS X}{macOS} \li \l {Qt for WinRT}{WinRT} - \li \l {Qt for Windows}{Windows} + \li \l {Qt for Windows}{Win32} \row \li Classic Bluetooth \li x @@ -78,6 +78,11 @@ Currently, the API is supported on the following platforms: \li \endtable +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. + \section1 Overview Bluetooth is a short-range (less than 100 meters) wireless technology. It -- cgit v1.2.3 From cfdfce6139c27e1c9f2e9dace2534b4f052cc0ba Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Thu, 1 Mar 2018 10:13:08 +0100 Subject: doc: State that QBluetoothLocalDevice is not supported on winrt As the winrt backend is the only available Windows backend atm, it probably causes least confusion if we state that the class is not available when using Windows. Change-Id: Ide9a1ad799c1bc19f0d503ac78e9f6b32f44b574 Reviewed-by: Andy Shaw Reviewed-by: Alex Blasche --- src/bluetooth/qbluetoothlocaldevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bluetooth/qbluetoothlocaldevice.cpp b/src/bluetooth/qbluetoothlocaldevice.cpp index e52dd88f..78095beb 100644 --- a/src/bluetooth/qbluetoothlocaldevice.cpp +++ b/src/bluetooth/qbluetoothlocaldevice.cpp @@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE QBluetoothLocalDevice provides functions for getting and setting the state of local Bluetooth devices. - On iOS, this class cannot be used because the platform does not expose + On iOS and Windows, this class cannot be used because the platform does not expose any data or API which may provide information on the local Bluetooth device. */ -- cgit v1.2.3 From 588086170d79453095beee567ec138ecf7b2440c Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Fri, 2 Mar 2018 14:41:07 +0100 Subject: Reset mtu to default value after reconnect In theory each time a new connection is established, central and peripheral device should renegotiate the mtu. However this is not always happening which leads to wrong MTU assumptions. The most likely assumption is the default size of 23 bytes. Task-number: QTBUG-66056 Change-Id: I27d2cd89558b0c08925d31e2c7ed42ee45c303a4 Reviewed-by: Christian Kandeler --- src/bluetooth/qlowenergycontroller_bluez.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/bluetooth/qlowenergycontroller_bluez.cpp b/src/bluetooth/qlowenergycontroller_bluez.cpp index c4ff0e7f..40519b51 100644 --- a/src/bluetooth/qlowenergycontroller_bluez.cpp +++ b/src/bluetooth/qlowenergycontroller_bluez.cpp @@ -796,6 +796,7 @@ void QLowEnergyControllerPrivateBluez::resetController() requestPending = false; encryptionChangePending = false; receivedMtuExchangeRequest = false; + mtuSize = ATT_DEFAULT_LE_MTU; securityLevelValue = -1; connectionHandle = 0; -- cgit v1.2.3 From 3d93b58fcc36f556a90613750a3150d56379b2a4 Mon Sep 17 00:00:00 2001 From: Nikita Baryshnikov Date: Mon, 5 Mar 2018 12:38:56 +0300 Subject: QLowEnergyDescriptor fix spelling in docs Change-Id: Ibbdf40f5cf2bdb174e5a7d5efc90e880fc0b2edc Reviewed-by: Leena Miettinen Reviewed-by: Alex Blasche --- src/bluetooth/qlowenergydescriptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bluetooth/qlowenergydescriptor.cpp b/src/bluetooth/qlowenergydescriptor.cpp index 37a8f619..15859f17 100644 --- a/src/bluetooth/qlowenergydescriptor.cpp +++ b/src/bluetooth/qlowenergydescriptor.cpp @@ -54,14 +54,14 @@ QT_BEGIN_NAMESPACE QLowEnergyDescriptor provides information about a Bluetooth Low Energy descriptor's \l name(), \l uuid(), \l value() and \l handle(). Descriptors are encapsulated by Bluetooth Low Energy characteristics and provide additional - centextual information about the characteristic (data format, notification activation + contextual information about the characteristic (data format, notification activation and so on). The descriptor value may be written via the \l QLowEnergyService instance that manages the service to which this descriptor belongs. The \l {QLowEnergyService::writeDescriptor()} function writes the new value. The \l {QLowEnergyService::descriptorWritten()} signal - is emitted upon success. The cahced \l value() of this object is updated accordingly. + is emitted upon success. The cached \l value() of this object is updated accordingly. \sa QLowEnergyService, QLowEnergyCharacteristic */ -- cgit v1.2.3