public RXGattClientCharacteristic GetRXCharacteristicFromWin10Characteristic(GattCharacteristic win10Characteristic)
        {
            RXGattClientCharacteristic rxCharacteristic = null;

            foreach (var attribute in _AttributeList)
            {
                if (attribute.AttributeHandle == win10Characteristic.AttributeHandle)
                {
                    rxCharacteristic = attribute as RXGattClientCharacteristic;
                }
            }
            if (rxCharacteristic == null)
            {
                rxCharacteristic = new RXGattClientCharacteristic(this, win10Characteristic);
                _AttributeList.Add(rxCharacteristic);
            }
            return(rxCharacteristic);
        }
Example #2
0
 public RXClientCharacteristicConfiguration(RXGattClientCharacteristic rxGattClientCharacteristic)
 {
     RXGattClientCharacteristic = rxGattClientCharacteristic;
 }