1. Are you ready for the Galaxy S20? Here is everything we know so far!

Bluetooth Connectivity and testing from Xamarin.Forms

Discussion in 'Android Development' started by NH Subash, Jan 25, 2021.

  1. NH Subash

    NH Subash Lurker
    Thread Starter

    var adapter = CrossBleAdapter.Current;
    var status1 = adapter.Status;
    adapter.Scan().Subscribe(scanResult => {
    scanResults = scanResult;
    adapter.StopScan();
    if (scanResults.Device.Name=="Subash")
    {
    scanResults.Device.WhenConnected().Subscribe(result => Connected(result));
    scanResults.Device.WhenAnyCharacteristicDiscovered().Subscribe(result => CharacteristicsDiscovered(result));
    scanResults.Device.WhenStatusChanged().Subscribe(status => StatusChanged(status));
    scanResults.Device.Connect();
    }
    });
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator

    Development thread moved to the dev area for better exposure.:)
     
Loading...

Share This Page

Loading...