public override void OnCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, GattStatus status) { base.OnCharacteristicRead(gatt, characteristic, status); Trace.Message("OnCharacteristicRead: value {0}; status {1}", characteristic.GetValue().ToHexString(), status); CharacteristicValueUpdated?.Invoke(this, new CharacteristicReadCallbackEventArgs(characteristic)); }
public override void OnCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { base.OnCharacteristicChanged(gatt, characteristic); CharacteristicValueUpdated?.Invoke(this, new CharacteristicReadCallbackEventArgs(characteristic)); }