Ejemplo n.º 1
0
        public static GattDescriptor1Properties CreateGattDescriptor(GattDescriptorDescription descriptor)
        {
            var descriptorProperties = new GattDescriptor1Properties {
                UUID = descriptor.UUID, Flags = descriptor.Flags, Value = descriptor.Value
            };

            return(descriptorProperties);
        }
Ejemplo n.º 2
0
        public GattDescriptor AddDescriptor(GattDescriptor1Properties gattDescriptorProperties)
        {
            gattDescriptorProperties.Characteristic = ObjectPath;
            var gattDescriptor = new GattDescriptor(NextDescriptorPath(), gattDescriptorProperties);

            Descriptors.Add(gattDescriptor);
            return(gattDescriptor);
        }