From 0282c2fc4ae437cb4f549f25f3e748a90e64f864 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Tue, 25 Feb 2020 16:32:34 +0100 Subject: Android: Ensure that LE errors are forwarded from JNI to Qt The code to detect the error existed on the Java/JNI side. The code to handle and report the error was available on the Qt side. Unfortunately the essential signal and slot connection was never made though. This lead to [ChangeLog][QtBluetooth][Android] Fixed the missing QLowEnergyService::error() signal emission if the error was detected on the Java side. This probably cut 50% of all errors out. Change-Id: I6ee4d7605a1d1e61b920da56d7f67373fb7f5be5 Reviewed-by: Timur Pocheptsov Reviewed-by: Konstantin Ritt --- src/bluetooth/qlowenergycontroller_android.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/bluetooth/qlowenergycontroller_android.cpp b/src/bluetooth/qlowenergycontroller_android.cpp index 86e6ade7..f7966023 100644 --- a/src/bluetooth/qlowenergycontroller_android.cpp +++ b/src/bluetooth/qlowenergycontroller_android.cpp @@ -137,6 +137,8 @@ void QLowEnergyControllerPrivateAndroid::init() this, &QLowEnergyControllerPrivateAndroid::descriptorWritten); connect(hub, &LowEnergyNotificationHub::characteristicChanged, this, &QLowEnergyControllerPrivateAndroid::characteristicChanged); + connect(hub, &LowEnergyNotificationHub::serviceError, + this, &QLowEnergyControllerPrivateAndroid::serviceError); } } -- cgit v1.2.3