From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This makes it clearer when notifications are actually in effect. --- test/example-gatt-server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/example-gatt-server b/test/example-gatt-server index 24aaff973..689e86ff7 100755 --- a/test/example-gatt-server +++ b/test/example-gatt-server @@ -401,6 +401,8 @@ class BatteryLevelCharacteristic(Characteristic): { 'Value': [dbus.Byte(self.battery_lvl)] }, []) def drain_battery(self): + if not self.notifying: + return True if self.battery_lvl > 0: self.battery_lvl -= 2 if self.battery_lvl < 0: -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html