/// <summary> /// Event handler for when the device is bonded /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments including a Bluetooth device</param> private void _bleManager_DeviceBondedEvent(object sender, DeviceEventArgs e) { DeviceBondedEvent?.Invoke(this, new DeviceInfoEventArgs(FindDeviceInfo(e.Device))); }
/// <summary> /// Event handler for connection request result /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event args indicating success</param> private void ConnectionRequestEvent(object sender, DeviceEventArgs e) { _connectionSuccessEventArgs?.Invoke(this, new SuccessEventArgs(FindDeviceInfo(e.Device), e.Status == 0, (int)e.Status)); }