public Device(AdapterContext context, CBPeripheral peripheral) : base(peripheral.Name, peripheral.Identifier.ToGuid()) { this.context = context; this.peripheral = peripheral; }
public Adapter() { this.manager = (BluetoothManager)Application.Context.GetSystemService(Application.BluetoothService); this.context = new AdapterContext(this.manager); this.Advertiser = new Advertiser(); }
public Adapter() { this.manager = (BluetoothManager)Application.Context.GetSystemService(Application.BluetoothService); this.context = new AdapterContext(this.manager); this.scanStatusChanged = new Subject <bool>(); }
public Adapter(BleAdapterConfiguration config = null) { this.context = new AdapterContext(config); this.scanStatusChanged = new Subject <bool>(); }