示例#1
0
        public virtual bool TryGetDescriptor(BleUuid uuid, out BleDescriptor descriptor)
        {
            foreach (var d in GetDescriptors())
            {
                if (d.Uuid == uuid)
                {
                    descriptor = d; return(true);
                }
            }

            descriptor = null; return(false);
        }
示例#2
0
 public abstract void WriteDescriptor(BleDescriptor descriptor, byte[] value, int offset, int count, BleRequestFlags requestFlags);
示例#3
0
 public void WriteDescriptor(BleDescriptor descriptor, byte[] value, int offset, int count)
 {
     WriteDescriptor(descriptor, value, offset, count, RequestFlags);
 }
示例#4
0
 public void WriteDescriptor(BleDescriptor descriptor, byte[] value)
 {
     Throw.If.Null(value, "value");
     WriteDescriptor(descriptor, value, 0, value.Length);
 }
示例#5
0
 public abstract byte[] ReadDescriptor(BleDescriptor descriptor, BleRequestFlags requestFlags);
示例#6
0
 public byte[] ReadDescriptor(BleDescriptor descriptor)
 {
     return(ReadDescriptor(descriptor, RequestFlags));
 }