public override void OnServicesDiscovered(BluetoothGatt gatt, GattStatus status) { base.OnServicesDiscovered(gatt, status); dev.OnConnectionStateChanged(dev, new BleConnectionStateChangedEventArgs(dev.ConnectionState, BleConnectionState.ConnectedWithServices)); if (status == GattStatus.Success) { dev.OnServicesDiscovered(dev, new BleServicesDiscoveredEventArgs(BleGattOperationState.Success)); } else { dev.OnServicesDiscovered(dev, new BleServicesDiscoveredEventArgs(BleGattOperationState.Failure)); } }
/// <summary> /// Raises the services discovered event. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> public void OnServicesDiscovered(IBleDevice sender, BleServicesDiscoveredEventArgs e) { dev.OnServicesDiscovered(sender, e); }