//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- #endregion //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\ #region --Misc Methods (Public)-- public async Task StartAsync(string mac) { if (!(scanner is null)) { Stop(); } scanner = new BLEScanner(mac); scanner.StateChanged += Scanner_StateChanged; scanner.DeviceFound += Scanner_DeviceFound; await scanner.StartAsync(); }
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- #endregion //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\ #region --Misc Methods (Public)-- public Task StartAsync(string mac) { if (scanner is not null) { Stop(); } scanner = new BLEScanner(mac); scanner.StateChanged += Scanner_StateChanged; scanner.DeviceFound += Scanner_DeviceFound; return(scanner.StartAsync()); }