<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[James's Programming Page — Write to device example?]]></title>
		<link>https://swforum.seekye.com/topic/10150/</link>
		<atom:link href="https://swforum.seekye.com/feed/rss/topic/10150/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Write to device example?.]]></description>
		<lastBuildDate>Mon, 22 Nov 2021 16:48:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Write to device example?]]></title>
			<link>https://swforum.seekye.com/post/13134/#p13134</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (samsamm777)]]></author>
			<pubDate>Mon, 22 Nov 2021 16:48:13 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13134/#p13134</guid>
		</item>
		<item>
			<title><![CDATA[Write to device example?]]></title>
			<link>https://swforum.seekye.com/post/13132/#p13132</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (samsamm777)]]></author>
			<pubDate>Sun, 21 Nov 2021 00:02:06 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13132/#p13132</guid>
		</item>
	</channel>
</rss>
