public override void OnCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { base.OnCharacteristicChanged(gatt, characteristic); BleCharacteristicChangedEventArgs ev = new BleCharacteristicChangedEventArgs(characteristic, characteristic.GetValue(), BleGattOperationState.Success); dev.OnCharacteristicChanged(dev, ev); }
/// <summary> /// Raises the characteristic changed event. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> public void OnCharacteristicChanged(IBleDevice sender, BleCharacteristicChangedEventArgs e) { if (CharacteristicChanged != null) { CharacteristicChanged(sender, e); } }
/// <summary> /// Raises the characteristic changed event. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> public void OnCharacteristicChanged(IBleDevice sender, BleCharacteristicChangedEventArgs e) { dev.OnCharacteristicChanged(sender, e); }