<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[James's Programming Page — Write to device example?]]></title>
	<link rel="self" href="https://swforum.seekye.com/feed/atom/topic/10150/" />
	<updated>2021-11-22T16:48:13Z</updated>
	<generator>PunBB</generator>
	<id>https://swforum.seekye.com/topic/10150/</id>
		<entry>
			<title type="html"><![CDATA[Re: Write to device example?]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13134/#p13134" />
			<content type="html"><![CDATA[<p>Ok, so ive figured out sending bytes to the hidSteam is simple enough, and works fine for sending out reports. But its a manual process for me to put together the byte array for each report. Does the Report class not give me a way to write values for each element in the report, and then output the report object as a byte array for sending?</p><p>Herees some pseudocode of what id expect to be able to do...<br /></p><div class="codebox"><pre><code>Report report = ReportDescriptor.GetReport(REPORT_ID);
report.Button1 = 1;
report.Button2 = 0;
hidStream.Write(report.Bytes());</code></pre></div>]]></content>
			<author>
				<name><![CDATA[samsamm777]]></name>
				<uri>https://swforum.seekye.com/user/14379/</uri>
			</author>
			<updated>2021-11-22T16:48:13Z</updated>
			<id>https://swforum.seekye.com/post/13134/#p13134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Write to device example?]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13132/#p13132" />
			<content type="html"><![CDATA[<p>Hey,</p><p>Im working on a project, and have been having some success with HidSharp. I can read from my device just fine, and can access the data i need from the IN reports.</p><p>However I totally cannot see how i can write OUT reports back to the device. I&#039;ve trawled the internet, but no examples.</p><p>Ive found I can get the OUT report I need using the GetReport() method but i dont know how to write my values into it, or send it.</p><p>Any advice/help much appreciated.</p>]]></content>
			<author>
				<name><![CDATA[samsamm777]]></name>
				<uri>https://swforum.seekye.com/user/14379/</uri>
			</author>
			<updated>2021-11-21T00:02:06Z</updated>
			<id>https://swforum.seekye.com/post/13132/#p13132</id>
		</entry>
</feed>
