From a7a0a74aa8d2a817ea9250dd3b93edf19ad0549e Mon Sep 17 00:00:00 2001 From: Paul Nettle Date: Mon, 8 Jan 2018 07:42:09 -0600 Subject: Improved handling of connection counts dealing with latent disconnects on startup. This includes a change to change to the behavior of change notifications for values, they no longer check for an active connection before transmitting - this is now up to the caller. --- src/GattCharacteristic.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/GattCharacteristic.cpp') diff --git a/src/GattCharacteristic.cpp b/src/GattCharacteristic.cpp index a10c04d..85d411c 100644 --- a/src/GattCharacteristic.cpp +++ b/src/GattCharacteristic.cpp @@ -209,6 +209,9 @@ GattDescriptor &GattCharacteristic::gattDescriptorBegin(const std::string &pathE // // This is a generalized method that accepts a `GVariant *`. A templated version is available that supports common types called // `sendChangeNotificationValue()`. +// +// The caller may choose to consult HciAdapter::getInstance().getActiveConnectionCount() in order to determine if there are any +// active connections before sending a change notification. void GattCharacteristic::sendChangeNotificationVariant(GDBusConnection *pBusConnection, GVariant *pNewValue) const { g_auto(GVariantBuilder) builder; -- cgit v1.2.3