private void Dialog_Closed(ContentDialog sender, ContentDialogClosedEventArgs args) { var procedureResult = (sender as BleDeviceSelectorDialog).Result; GyroscopeRfcommServiceConnection = new GyroscopeRfcommServiceConnectionWrapper(procedureResult[GyroscopeRfcommServiceConnectionWrapper.RfcommServiceId].RfcommConnection); GyroscopeRfcommServiceConnection.OnReadingUpdated += GyroscopeRfcommServiceConnection_OnReadingUpdated; }
private void GyroRfcommServiceProvider_OnConnectionReceived(object sender, IRfcommConnection e) { GyroscopeRfcommServiceConnectionWrapper = new GyroscopeRfcommServiceConnectionWrapper(e); //_ = GyroscopeRfcommServiceConnectionWrapper.UpdateReadingAsync(new Vector3(100, 100, 100)); }