Beispiel #1
0
        public IPeripheral AddPeripheral(BluetoothLEDevice native)
        {
            var dev = new Peripheral(this, native);

            this.peripherals.TryAdd(native.BluetoothAddress, dev);
            return(dev);
        }
Beispiel #2
0
 public GattService(Peripheral peripheral, CBService native) : base(peripheral, native.UUID.ToGuid(), native.Primary)
 {
     this.Peripherial = peripheral.Native;
     this.Service     = native;
 }