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