Example #1
0
        public bool Write(byte[] data)
        {
            var featureData = new byte[_hidReadWriteFeatureDataDevice.Capabilities.FeatureReportByteLength];

            Array.Copy(data, 0, featureData, 1,
                       _hidReadWriteFeatureDataDevice.Capabilities.FeatureReportByteLength - 1);
            return(_hidReadWriteFeatureDataDevice.WriteFeatureData(featureData));
        }