Beispiel #1
0
 public Peripheral(AdapterContext adapterContext, BluetoothLEDevice native)
 {
     this.context = new DeviceContext(adapterContext, this, native);
     this.Name    = native.Name;
     this.Uuid    = native.GetDeviceId();
 }
Beispiel #2
0
 public Peripheral(CentralContext centralContext, BluetoothDevice native)
     : base(native.Name, ToDeviceId(native.Address))
 {
     this.connSubject = new Subject <ConnectionState>();
     this.context     = new DeviceContext(centralContext, native);
 }