private void _device_BleEvent(object sender, BleLib.BleEventArgs e) { Application.Current.Dispatcher.Invoke(() => { this.textbox.Text += e.LocalName + Environment.NewLine; }); }
private static void Device_BleEvent(object sender, BleLib.BleEventArgs e) { Console.WriteLine($"BleEvent Received. type:{e.Type}, localName:{e.LocalName}"); }