public override void OnConnectionStateChange(BluetoothGatt gatt, GattStatus status, ProfileState newState)
            {
                base.OnConnectionStateChange(gatt, status, newState);

                dev.OnConnectionStateChanged(dev, new BleConnectionStateChangedEventArgs(dev.ConnectionState, GetConnectionState(newState)));
            }
Пример #2
0
 /// <summary>
 /// Raises the connection state changed event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 public void OnConnectionStateChanged(IBleDevice sender, BleConnectionStateChangedEventArgs e)
 {
     dev.OnConnectionStateChanged(sender, e);
 }