<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — problem with edit control]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=960&amp;type=atom" />
	<updated>2020-04-02T19:09:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=960</id>
		<entry>
			<title type="html"><![CDATA[Re: problem with edit control]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2777#p2777" />
			<content type="html"><![CDATA[<p>Bonjour<br />on est bien d&#039;accord que la loop ne sera jamais appelée, là n&#039;est pas le souci<br />dans mon cas je veux faire une interface avec 4 tableaux avec l&#039;edit text&#039; , ce que je parviens à faire pour les 3 premiers à 30 caractères (cela fonctionne) mais si je rajoute un autre de 30 caractères cela plante...Tu as qu&#039;a essayé...<br />par exemple je m&#039;amuse à changer le premier tableau dans l&#039;interface et à voir dans le serial si il y a modification de la variable. cela est le cas si j ai trois tableaux mais si j&#039;en ai 4 cela plante...Et cela marche pas...<br />par contre je me suis appercu que la taille compte ! si je mets 10 edit text avec une taille de 10 cela fonctionnera! </p><p>je suis peut etre plus clair? merci de m&#039;éclairer et merci à toi en tout cas!<br />le code que j&#039;ai posté ne fonctionne pas! il plante l&#039;application ...!</p>]]></content>
			<author>
				<name><![CDATA[pascalou31]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1292</uri>
			</author>
			<updated>2020-04-02T19:09:58Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2777#p2777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problem with edit control]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2776#p2776" />
			<content type="html"><![CDATA[<p>Je n&#039;ai pas compris ton problème... Peux-tu montrer un code qui fonctionne et un autre qui ne fonctionne pas ?</p><p>Par contre tu as un problème dans ton code, loop() ne sera jamais appelé car tu as mis une boucle infinie dans setup(). Et pourquoi utiliser des String si c&#039;est pour les convertir en tableau de char juste après? Un conseil, n&#039;utilise pas les String, ça ne sert à rien sauf à fragmenter la SRAM...</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-04-02T17:57:28Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2776#p2776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[problem with edit control]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2775#p2775" />
			<content type="html"><![CDATA[<p>Hello Every body <br />This software is really nice but I notice a bug<br />please have a look in this project<br /><a target="_blank" href="http://remotexy.com/en/editor/abe5ccc7479f94d743f82d944c730224/">http://remotexy.com/en/editor/abe5ccc74 … 44c730224/</a></p><p>and this associated code. The problem is concerning the size of field inputs. Is there a limit concerning the size ?<br />For example it works if I choose 5 concerning the last dimension (instead of 30) of my array. T works. It means that I Can change and see the result in my serial terminal.<br />May you check if you have also the problem and resolve it? Seems to be a size of text field more than 100 can occur a problem?</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_SERIAL Serial1
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID &quot;RemoteXY&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 124, 0, 0, 0, 43, 0, 10, 13, 1,
  7, 36, 5, 26, 56, 4, 2, 26, 2, 31,
  7, 36, 5, 37, 56, 4, 2, 26, 2, 31,
  7, 36, 5, 47, 56, 4, 2, 26, 2, 31,
  7, 36, 5, 62, 56, 4, 2, 26, 2, 31
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  char test_edit[31];  // string UTF8 end zero
  char test_edit1[31];  // string UTF8 end zero
  char test_edit2[31];  // string UTF8 end zero
  char test_edit3[31];  // string UTF8 end zero

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

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

const int S1_mux = 6;
const int S0_mux = 7 ;
// S1/SO = 0-0 =&gt; Externe
// S1/S0 = 0-1 =&gt; Modem ERCO
// S1/SO = 1-0 =&gt; Module WIFI ESP32
// S1/SO = 1-1 =&gt; GPS A2200
// --------------------------------------------------------









const int Wifi_esp01_en = 9;

void setup()
{
  SerialUSB.begin(115200);
  digitalWrite(S0_mux, LOW);
  digitalWrite(S1_mux, HIGH);

  digitalWrite(Wifi_esp01_en, HIGH);
  RemoteXY_Init ();

  String mystring = &quot;130.120.117.103&quot;;
  char s[sizeof(mystring) + 10];
  mystring.toCharArray(s, sizeof(s));
  sprintf   (RemoteXY.test_edit, s);
  // TODO you setup code
  while (1)
  { RemoteXY_Handler ();
    //strcpy(RemoteXY.test_edit, &quot;130.120.23.21&quot;);
    String newString = RemoteXY.test_edit;
    SerialUSB.println(newString);


  }
}

void loop()
{
  RemoteXY_Handler ();
  //strcpy(RemoteXY.test_edit, &quot;130.120.23.21&quot;);
  String newString = RemoteXY.test_edit;
  SerialUSB.println(newString);
  // TODO you loop code
  // use the RemoteXY structure for data transfer


}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[pascalou31]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1292</uri>
			</author>
			<updated>2020-04-02T17:37:49Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2775#p2775</id>
		</entry>
</feed>
