Example #1
0
 private void Device_AdvertisementReceived(object sender, BluetoothAdvertisingEvent e)
 {
     System.Diagnostics.Debug.WriteLine(e.Name);
     System.Diagnostics.Debug.WriteLine(e.Appearance);
     foreach (var data in e.ManufacturerData)
     {
         System.Diagnostics.Debug.WriteLine(data.Key);
         System.Diagnostics.Debug.WriteLine(data.Value.Length);
     }
     foreach (var data in e.ServiceData)
     {
         System.Diagnostics.Debug.WriteLine(data.Key);
         System.Diagnostics.Debug.WriteLine(data.Value.Length);
     }
 }
Example #2
0
 private void Bluetooth_AdvertisementReceived(object sender, BluetoothAdvertisingEvent e)
 {
     Debug.WriteLine($"Name:{e.Name} Rssi:{e.Rssi}");
 }
Example #3
0
 private void B_AdvertisementReceived(object sender, BluetoothAdvertisingEvent e)
 {
     System.Diagnostics.Debug.WriteLine($"Device:{e.Device} Name:{e.Name} Rssi:{e.Rssi} TxPower:{e.TxPower} Appearance:{e.Appearance}");
 }