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); } }
private void Bluetooth_AdvertisementReceived(object sender, BluetoothAdvertisingEvent e) { Debug.WriteLine($"Name:{e.Name} Rssi:{e.Rssi}"); }
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}"); }