Exemplo n.º 1
0
        public byte[] ReadUserDescription(string uuid)
        {
            if (!uuid.Equals("ffe1") && !uuid.Equals("ffe2"))
            {
                return(null);
            }
            wclGattDescriptor descriptor = uuid.Equals("ffe1") ? WriteChUserDesc : ReadChUserDesc;

            Client.ReadDescriptorValue(descriptor, wclGattOperationFlag.goReadFromDevice, out wclGattDescriptorValue value);
            return((byte[])value.Data.Clone());
        }