diff --git a/lib/src/bluetooth_characteristic.dart b/lib/src/bluetooth_characteristic.dart index 24138981..c06be97f 100644 --- a/lib/src/bluetooth_characteristic.dart +++ b/lib/src/bluetooth_characteristic.dart @@ -14,7 +14,7 @@ class BluetoothCharacteristic { bool get isNotifying { try { var cccd = - descriptors.singleWhere((d) => d.uuid == BluetoothDescriptor.CCCD); + descriptors.singleWhere((d) => d.uuid == BluetoothDescriptor.cccd); return ((cccd.lastValue[0] & 0x01) > 0 || (cccd.lastValue[0] & 0x02) > 0); } catch (e) { return false; diff --git a/lib/src/bluetooth_descriptor.dart b/lib/src/bluetooth_descriptor.dart index 0f7864f1..8c06ac3d 100644 --- a/lib/src/bluetooth_descriptor.dart +++ b/lib/src/bluetooth_descriptor.dart @@ -5,7 +5,7 @@ part of flutter_blue; class BluetoothDescriptor { - static final Guid CCCD = new Guid("00002902-0000-1000-8000-00805f9b34fb"); + static final Guid cccd = new Guid("00002902-0000-1000-8000-00805f9b34fb"); final Guid uuid; final DeviceIdentifier deviceId;