Пример #1
0
 public Device(BleContext context, CBPeripheral peripheral) : base(peripheral.Name, peripheral.Identifier.ToGuid())
 {
     this.context    = context;
     this.peripheral = peripheral;
 }
Пример #2
0
 public Adapter()
 {
     this.manager           = (BluetoothManager)Application.Context.GetSystemService(Application.BluetoothService);
     this.context           = new BleContext(this.manager);
     this.scanStatusChanged = new Subject <bool>();
 }