<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Struct limit of 256 bytes?]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=17</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=17&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Struct limit of 256 bytes?.]]></description>
		<lastBuildDate>Mon, 27 Feb 2017 22:39:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=416#p416</link>
			<description><![CDATA[<p>Ok, thanks <img src="https://forum.remotexy.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Mon, 27 Feb 2017 22:39:06 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=416#p416</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=410#p410</link>
			<description><![CDATA[<p>yes, we have solution how it fix. It solution have necessary to update the library all users, old library will not be work. And we plan add something features at the same time.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Mon, 27 Feb 2017 14:06:35 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=410#p410</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=403#p403</link>
			<description><![CDATA[<p>Any idea when/if this will be fixed? These limits are really not enough <img src="https://forum.remotexy.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>The quick fix would be to increase that limit by using 2 bytes (or more) in the conf array instead of 1, then you read it and use it as a 16 (or more) bits number.</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sun, 26 Feb 2017 14:14:02 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=403#p403</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=81#p81</link>
			<description><![CDATA[<p>Yes, shouldn&#039;t be too hard to fix <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sun, 15 Jan 2017 06:24:12 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=81#p81</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=80#p80</link>
			<description><![CDATA[<p>Yes, I see.<br />It is limitation. Length of all output variables not more than 255. Length of all input variables not more than 255.<br />We need to modify the library and code generator to fix this bug.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sun, 15 Jan 2017 05:59:32 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=80#p80</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=75#p75</link>
			<description><![CDATA[<p>Hello and sorry again, yes I modified manually...</p><br /><p>But the problem is now obvious, I just noticed...</p><p>The array is of type uint8_t, but in the code in the first post you can see a value 280, and in the following example, 402. Those values does not fit in a uint8_t.<br /></p><div class="codebox"><pre><code>#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 0,402,19,0,6,5,0,67,4,2
  ,2,95,5,2,201,67,4,2,8,95
  ,5,2,201 };
  
// this structure defines all the variables of your control interface 
struct {

    // output variable
  char text_1[201];  // string UTF8 end zero
  char text_2[201];  // string UTF8 end zero

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop) </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sat, 14 Jan 2017 19:39:35 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=75#p75</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=72#p72</link>
			<description><![CDATA[<p>Tell me, how do you set the length of text_1 to 252? Into editor?<br />In your sketch the structure RemoteXY does not compatible with array RemoteXY_CONF.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sat, 14 Jan 2017 19:08:37 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=72#p72</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=70#p70</link>
			<description><![CDATA[<p>The problem can also be reproduced if you just put a Text of size of 252 or more</p><div class="codebox"><pre><code>/* RemoteXY configurate  */
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 0,251,11,0,6,5,0,67,4,1
  ,1,20,5,2,252 };
  
/* this structure defines all the variables of your control interface */
struct {

    /* output variable */
  char text_1[252];  /* string UTF8 end zero */

    /* other variable */
  uint8_t connect_flag;  /* =1 if wire connected, else =0 */

} RemoteXY;
#pragma pack(pop) </code></pre></div><p>It says &quot;Device not reply. Receive time out error&quot;</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sat, 14 Jan 2017 17:05:31 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=70#p70</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=64#p64</link>
			<description><![CDATA[<p>Thanks Guillaume.<br />We will test this code and try to fix problem.<br />I will tell about result.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sat, 14 Jan 2017 12:28:43 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=64#p64</guid>
		</item>
		<item>
			<title><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=53#p53</link>
			<description><![CDATA[<p>Sorry I posted wrong code, I edited and updated code, but same problem.</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 13 Jan 2017 14:25:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=53#p53</guid>
		</item>
		<item>
			<title><![CDATA[Struct limit of 256 bytes?]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=52#p52</link>
			<description><![CDATA[<p>Hello, I have this code<br /></p><div class="codebox"><pre><code>uint8_t RemoteXY_CONF[] =
   { 13,280,113,0,6,0,2,4,16,93
  ,2,5,53,56,2,5,90,0,7,36
  ,1,57,87,5,1,94,50,5,0,11
  ,1,1,89,57,10,5,52,94,10,5
  ,0,83,69,78,68,0,67,0,2,2
  ,91,3,2,2,55,5,2,56,67,0
  ,2,5,91,3,2,7,55,5,2,56
  ,67,0,2,8,91,3,2,12,55,5
  ,2,56,67,0,2,11,91,3,2,17
  ,55,5,2,56,67,0,2,14,91,3
  ,2,22,55,5,2,56,130,0,1,1
  ,98,55,1,1,61,92,6 };
  
/* this structure defines all the variables of your control interface */
struct {

    /* input variable */
  int8_t slider_1; /* =0..100 slider position */
  char edit_1[11];  /* string UTF8 end zero  */
  uint8_t button_1; /* =1 if button pressed, else =0 */

    /* output variable */
  char text_1[56];  /* string UTF8 end zero */
  char text_2[56];  /* string UTF8 end zero */
  char text_3[56];  /* string UTF8 end zero */
  char text_4[56];  /* string UTF8 end zero */
  char text_5[56];  /* string UTF8 end zero */

    /* other variable */
  uint8_t connect_flag;  /* =1 if wire connected, else =0 */

} RemoteXY;</code></pre></div><p>It doesn&#039;t works, but if I change size of texts to like 32, then it will work.</p><p>Looking in the code I can see #define REMOTEXY_SEND_BUFFER_LENGTH 256 but increasing it (tried 2560) doesn&#039;t solve the problem.</p><p>I would like a way to increase this limit, or better yet, remove limit if possible <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Fri, 13 Jan 2017 03:10:42 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=52#p52</guid>
		</item>
	</channel>
</rss>
