public Descriptor(CBDescriptor nativeDescriptor, CBPeripheral parentDevice, ICharacteristic characteristic, CBCentralManager centralManager) : base(characteristic) { _parentDevice = parentDevice; _nativeDescriptor = nativeDescriptor; _centralManager = centralManager; }
public Descriptor(CBDescriptor nativeDescriptor, CBPeripheral parentDevice, Characteristic characteristic, IBleCentralManagerDelegate bleCentralManagerDelegate) : this(characteristic) { NativeDescriptor = nativeDescriptor; _parentDevice = parentDevice; _bleCentralManagerDelegate = bleCentralManagerDelegate; }
private Descriptor ConvertDescriptor(CBDescriptor nativeDescriptor) { return(new Descriptor { Id = BluetoothConverter.ConvertBluetoothLeUuid(nativeDescriptor.UUID.Uuid), NativeDescriptor = nativeDescriptor }); }
internal BLEDescriptor(BLECBPeripheralWrapper peripheral, CBDescriptor descriptor) { _peripheralReference = new WeakReference(peripheral); _descriptor = descriptor; PeripheralWrapper.UpdatedValue += OnUpdatedValue; PeripheralWrapper.WroteDescriptorValue += OnWroteDescriptorValue; }
internal GattDescriptor( CBPeripheral peripheral, PeripheralDelegate @delegate, GattCharacteristic characteristic, CBDescriptor descriptor) { this.peripheral = peripheral; this.@delegate = @delegate; Characteristic = characteristic; this.descriptor = descriptor; }
bool Equals(CBDescriptor descriptor) { if (!this.native.UUID.Equals(descriptor.UUID)) { return(false); } if (!this.NativeCharacteristic.UUID.Equals(descriptor.Characteristic.UUID)) { return(false); } if (!this.NativeService.UUID.Equals(descriptor.Characteristic.Service.UUID)) { return(false); } if (!this.Peripheral.Identifier.Equals(descriptor.Characteristic.Service.Peripheral.Identifier)) { return(false); } return(true); }
public Descriptor(CBDescriptor nativeDescriptor, CBPeripheral parentDevice) { _parentDevice = parentDevice; _nativeDescriptor = nativeDescriptor; }
public override void UpdatedValue(CBPeripheral peripheral, CBDescriptor descriptor, NSError error) { Console.WriteLine ("Value of characteristic " + descriptor.Characteristic + " is " + descriptor.Value); }
public GattDescriptor(GattCharacteristic characteristic, CBDescriptor native) : base(characteristic, native.UUID.ToGuid()) { this.characteristicObj = characteristic; this.native = native; }
internal GattDescriptor(GattCharacteristic characteristic, CBDescriptor descriptor) : this(characteristic) { _descriptor = descriptor; }
public Descriptor(CBDescriptor nativeDescriptor) { this._nativeDescriptor = nativeDescriptor; }
public Descriptor(CBDescriptor nativeDescriptor) { _nativeDescriptor = nativeDescriptor; }
public Descriptor (CBDescriptor nativeDescriptor) { this._nativeDescriptor = nativeDescriptor; }
private GattDescriptor(CBDescriptor descriptor) { _descriptor = descriptor; }
public override void UpdatedValue(CBPeripheral peripheral, CBDescriptor descriptor, NSError error) { base.UpdatedValue(peripheral, descriptor, error); }
public Descriptor(CBDescriptor nativeDescriptor, CBPeripheral parentDevice, ICharacteristic characteristic) : base(characteristic) { _parentDevice = parentDevice; _nativeDescriptor = nativeDescriptor; }
public static byte[] ToByteArray(this CBDescriptor native) => (native.Value as NSData)?.ToArray();
public override void UpdatedValue(CBPeripheral peripheral, CBDescriptor descriptor, NSError error) { Console.WriteLine("Value of characteristic " + descriptor.Characteristic + " is " + descriptor.Value); }