diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2016-07-18 12:56:14 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2016-07-28 10:46:33 +0000 |
commit | 4976498621fb05804201dad52eab2c59d94f0da3 (patch) | |
tree | 6c197ee76cd1c27f3df5b8db62c15cf4187f99e3 | |
parent | f5b90dd2e93a950f9d8d2b543022182761aefd67 (diff) |
Proper state and warning on access denied error
Change-Id: I4cf980c020fa11a1e213a1f5cd0110033aeaec71
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | src/bluetooth/qlowenergycontroller_winrt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_winrt.cpp b/src/bluetooth/qlowenergycontroller_winrt.cpp index 1561f560..7de12d2c 100644 --- a/src/bluetooth/qlowenergycontroller_winrt.cpp +++ b/src/bluetooth/qlowenergycontroller_winrt.cpp @@ -352,6 +352,11 @@ void QLowEnergyControllerPrivate::connectToDevice() ComPtr<IVectorView<GattCharacteristic *>> characteristics; hr = service2->GetAllCharacteristics(&characteristics); if (hr == E_ACCESSDENIED) { + // Everything will work as expected up until this point if the manifest capabilties + // for bluetooth LE are not set. + qCWarning(QT_BT_WINRT) << "Could not obtain characteristic list. Please check your " + "manifest capabilities"; + setState(QLowEnergyController::UnconnectedState); setError(QLowEnergyController::ConnectionError); return; } else { |