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);
            }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 /// <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);
 }