isNotifying property

bool isNotifying

Implementation

bool get isNotifying {
  try {
    var cccd =
        descriptors.singleWhere((d) => d.uuid == BluetoothDescriptor.cccd);
    return ((cccd.lastValue[0] & 0x01) > 0 || (cccd.lastValue[0] & 0x02) > 0);
  } catch (e) {
    return false;
  }
}