private async void BtnDescriptorsClicked(object sender, EventArgs e) { if (Characteristic != null) { descriptors = await Characteristic.GetDescriptorsAsync(); descriptor = (IDescriptor)Characteristic.GetDescriptorAsync(Guid.Parse("guid")); this.RunOnUiThread(() => { Toast.MakeText(this, "Descriptors: " + descriptors + "Descriptor: " + descriptor, ToastLength.Long).Show(); }); } else { Toast.MakeText(this, "Characteristic is Empty", ToastLength.Long).Show(); } }
private async void btnDescriptors_Clicked(object sender, EventArgs e) { _descriptors = await _characteristic.GetDescriptorsAsync(); _descriptor = await _characteristic.GetDescriptorAsync(Guid.Parse("guid")); }
private async void btn_GetDescriptor() { Descriptor = await Characteristic.GetDescriptorAsync(id); }