summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-26 12:17:00 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2014-11-26 12:31:21 +0100
commit9966c69e301a041ad224ef08bc3da45ca249041d (patch)
tree3c3fadaf0d613189e6ccbfc79ea9a6ce86b9d21f /src/bluetooth/qlowenergycontroller.cpp
parent4c25743910622a4834d8ebb7f3acc59e025a3c41 (diff)
Document Android's caching of BTLE service data.
It can be confusing. As more platforms are supported, this behavior needs to be verified too. The Bluez implementation does not exhibit this cache behavior. Change-Id: I42dd003f2ac2632c32e48b1b1784e4ca529950f3 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r--src/bluetooth/qlowenergycontroller.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp
index d50c691d..906a6af1 100644
--- a/src/bluetooth/qlowenergycontroller.cpp
+++ b/src/bluetooth/qlowenergycontroller.cpp
@@ -570,6 +570,13 @@ void QLowEnergyController::disconnectFromDevice()
If the controller instance is not connected or the controller has performed
the service discovery already this function will do nothing.
+
+ \note Some platforms internally cache the service list of a device
+ which was discovered in the past. This can be problematic if the remote device
+ changed its list of services or their inclusion tree. If this behavior is a
+ problem, the best workaround is to temporarily turn Bluetooth off. This
+ causes a reset of the cache data. Currently Android exhibits such a
+ cache behavior.
*/
void QLowEnergyController::discoverServices()
{