<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — RemoteXY + ESP32 + Ultrasonic - creates no network]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1704</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1704&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in RemoteXY + ESP32 + Ultrasonic - creates no network.]]></description>
		<lastBuildDate>Mon, 02 Oct 2023 06:14:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: RemoteXY + ESP32 + Ultrasonic - creates no network]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5218#p5218</link>
			<description><![CDATA[<p>Try removing all additional code and leaving the code only from the editor.<br />Perhaps the ultrasonic.distanceRead() function uses too much time and the RemoteXY input buffer manages to overflow.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Mon, 02 Oct 2023 06:14:07 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5218#p5218</guid>
		</item>
		<item>
			<title><![CDATA[Re: RemoteXY + ESP32 + Ultrasonic - creates no network]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5217#p5217</link>
			<description><![CDATA[<p>Thank you very much for your answer but the problem is still the same. Maybe it&#039;s something else that&#039;s wrong? Is there anything else I can do about it?</p>]]></description>
			<author><![CDATA[null@example.com (felixascher)]]></author>
			<pubDate>Sun, 01 Oct 2023 10:52:26 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5217#p5217</guid>
		</item>
		<item>
			<title><![CDATA[Re: RemoteXY + ESP32 + Ultrasonic - creates no network]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5215#p5215</link>
			<description><![CDATA[<p>Remove delay(1000);<br />You can read more at the link in the &quot;Loop function&quot; header <a target="_blank" href="https://remotexy.com/en/help/whatiscode/">https://remotexy.com/en/help/whatiscode/</a> <br />Replace delay(1000) with RemoteXY.delay(1000);</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sat, 30 Sep 2023 18:24:04 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5215#p5215</guid>
		</item>
		<item>
			<title><![CDATA[RemoteXY + ESP32 + Ultrasonic - creates no network]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5214#p5214</link>
			<description><![CDATA[<p>So I&#039;m currently working on a relatively small project for an ultrasonic reader, who prints out a message and let&#039;s an led blink on RemoteXY. The problem is, that my ESP32 isn&#039;t creating a network. I&#039;ve tried all of the examples and they seem to work. I would be super thankfull if anyone knows what&#039;s wrong with the code standing below. I&#039;m programming in ArduinoIDE by the way.</p><br /><div class="codebox"><pre><code>#define REMOTEXY_MODE__ESP32CORE_WIFI_POINT
#include &lt;WiFi.h&gt;
#include &lt;RemoteXY.h&gt;
#include &lt;Ultrasonic.h&gt;

#define REMOTEXY_WIFI_SSID &quot;Thurner&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;Rattenberg2709&quot;
#define REMOTEXY_SERVER_PORT 6377

#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 28 bytes
  { 255,0,0,12,0,21,0,16,27,1,70,18,9,28,46,66,26,161,0,67,
  4,10,14,43,9,162,26,11 };

struct {

    // output variables
  uint8_t led_1; // led state 0 .. 1 
  char text_1[11];  // string UTF8 end zero 
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//            END RemoteXY-Konfiguration    //
/////////////////////////////////////////////

#define TRIGGER_PIN 18
#define ECHO_PIN 5

Ultrasonic ultrasonic(TRIGGER_PIN, ECHO_PIN);


void setup()
{
  RemoteXY_Init (); 
  Serial.begin(115200);
  RemoteXY.led_1 = 0;
  strcpy(RemoteXY.text_1, &quot;Tür geschlossen&quot;);
}

void loop()
{
  RemoteXY_Handler();

  long distance = ultrasonic.distanceRead(CM); 

  Serial.print(&quot;Abstand: &quot;);
  Serial.print(distance);
  Serial.println(&quot; cm&quot;);

  if (distance &lt; 20)
  {
    RemoteXY.led_1 = 1;
    strcpy(RemoteXY.text_1, &quot;Tür offen&quot;);
  }
  else
  {
    RemoteXY.led_1 = 0;
    strcpy(RemoteXY.text_1, &quot;Tür geschlossen&quot;);
  }

  delay(1000);
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (felixascher)]]></author>
			<pubDate>Thu, 28 Sep 2023 18:34:38 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5214#p5214</guid>
		</item>
	</channel>
</rss>
