Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

plugin.Ble issue

$
0
0

Does anyone solve this problem i encountered error, GattCallback error : 133, using plugin.ble

here is my code below:

  device = DevicesList.SelectedItem as IDevice;

        var result = await DisplayAlert("Confirm", "Do you want to connect?", "Connect", "Cancel");

        if (!result)
            return;

        //Stop Scanner
        await adapter.StopScanningForDevicesAsync();

        try
       {


        await adapter.ConnectToDeviceAsync(device);

        await DisplayAlert("Connection", "Status:" + device.State , "OK");

      }
       catch (DeviceConnectionException ex)
      {
           await DisplayAlert("Error", ex.Message, "OK");
      }

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>