Example #1
0
 public PeripheralManager(CBCentralManager centralManager, TracingInformation tracingInformation)
 {
     _centralManager     = centralManager;
     _tracingInformation = tracingInformation;
     _logger             = Covi.Logs.Logger.Get(this);
     _manager            = DeviceManagerProvider.GetInstance();
 }
        public void Init()
        {
            BluetoothAdapter btAdapter = BluetoothAdapter.DefaultAdapter;

            _leScanner  = btAdapter?.BluetoothLeScanner;
            Initialized = _leScanner != null;
            _manager    = DeviceManagerProvider.GetInstance();
            _logger     = Covi.Logs.Logger.Get(this);
        }