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...
Similar Threads - Bluetooth Connectivity testing
  1. Caitlin Scott
    Replies:
    4
    Views:
    373
  2. Harvey Ellis Stewart
    Replies:
    1
    Views:
    1,907
  3. Drorian
    Replies:
    0
    Views:
    2,603
  4. ukiltmybrutha
    Replies:
    6
    Views:
    2,408
  5. Annersch
    Replies:
    6
    Views:
    8,561
  6. Kuldip Somwanshi
    Replies:
    0
    Views:
    2,093
  7. ChanceTheAuthor
    Replies:
    2
    Views:
    908
  8. dorlow
    Replies:
    0
    Views:
    991
  9. docfit2
    Replies:
    2
    Views:
    3,047
  10. plynius
    Replies:
    1
    Views:
    2,601

Share This Page

Loading...