public override void OnCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, [GeneratedEnum] GattStatus status) { base.OnCharacteristicRead(gatt, characteristic, status); var args = new BLEGATTCharacteristicStatusEventArgs(gatt, characteristic, status); _wes.RaiseEvent(nameof(CharacteristicRead), this, args); }
private void OnCharacteristicRead(object sender, BLEGATTCharacteristicStatusEventArgs e) { if (!ReferenceEquals(e.Characteristic, _characteristic)) { return; } if (e.Status != GattStatus.Success) { RaiseReadFailed(e.Status.ToShared()); } else { RaiseValueChanged(); } }