예제 #1
0
        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);
        }
예제 #2
0
 public RXClientCharacteristicConfiguration(RXGattClientCharacteristic rxGattClientCharacteristic)
 {
     RXGattClientCharacteristic = rxGattClientCharacteristic;
 }