<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Struct limit of 256 bytes?]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=17&amp;type=atom" />
	<updated>2017-02-27T22:39:06Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=17</id>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=416#p416" />
			<content type="html"><![CDATA[<p>Ok, thanks <img src="https://forum.remotexy.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-02-27T22:39:06Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=416#p416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=410#p410" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-02-27T14:06:35Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=410#p410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=403#p403" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-02-26T14:14:02Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=403#p403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=81#p81" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-01-15T06:24:12Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=81#p81</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=80#p80" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-15T05:59:32Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=80#p80</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=75#p75" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-01-14T19:39:35Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=75#p75</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=72#p72" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-14T19:08:37Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=72#p72</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=70#p70" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-01-14T17:05:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=70#p70</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=64#p64" />
			<content type="html"><![CDATA[<p>Thanks Guillaume.<br />We will test this code and try to fix problem.<br />I will tell about result.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-01-14T12:28:43Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=64#p64</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=53#p53" />
			<content type="html"><![CDATA[<p>Sorry I posted wrong code, I edited and updated code, but same problem.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-01-13T14:25:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=53#p53</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Struct limit of 256 bytes?]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=52#p52" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2017-01-13T03:10:42Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=52#p52</id>
		</entry>
</feed>
