<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — OTA and RemoteXY cloud server]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1729&amp;type=atom" />
	<updated>2024-11-22T06:59:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1729</id>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5769#p5769" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Serg_Grn wrote:</cite><blockquote><p>Good day.<br />Please tell me, are there any plans to add the OTA function to RemoteXY? So that it would be possible to update the firmware from a web page or something else...<br />Thank you!</p></blockquote></div><p>We do not plan to integrate remote software update functionality into RemoteXY in the near future.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-11-22T06:59:12Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5769#p5769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5763#p5763" />
			<content type="html"><![CDATA[<p>Good day.<br />Please tell me, are there any plans to add the OTA function to RemoteXY? So that it would be possible to update the firmware from a web page or something else...<br />Thank you!</p>]]></content>
			<author>
				<name><![CDATA[Serg_Grn]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=746</uri>
			</author>
			<updated>2024-11-17T10:52:26Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5763#p5763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5594#p5594" />
			<content type="html"><![CDATA[<p>Good day. May I ask if the RemoteXY cloud server is working properly today? I opened a finished project from last month, and now it doesn&#039;t connect to the cloud server. When I finished the code last month, it runs perfectly with the usable functions and cloud connection. Thanks in advance!</p>]]></content>
			<author>
				<name><![CDATA[Burnhardfire]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2809</uri>
			</author>
			<updated>2024-06-20T05:37:56Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5594#p5594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5382#p5382" />
			<content type="html"><![CDATA[<p>&quot;OTA (Over-The-Air) and RemoteXY cloud server offer convenient and efficient ways to update and manage devices remotely. These services streamline connectivity, enhancing accessibility and control for users across various applications and industries.&quot;<br /><a target="_blank" href="https://pmkisanyojanastatus.com/"><span style="color: #FFFFFF">PM kisan status</span></a></p>]]></content>
			<author>
				<name><![CDATA[Sarika10045]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2646</uri>
			</author>
			<updated>2024-02-29T14:06:23Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5382#p5382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5282#p5282" />
			<content type="html"><![CDATA[<p>Thank you ! it seems to work, even with dual connections exemple (Bluetooth and Cloud server).</p><p>I was putting &quot;WebServer server(80)&quot; at the beginning of the sketch and it didn&#039;t work. It seems that putting it after &quot;END RemoteXY include&quot;, just like in your exemple, made it work, I don&#039;t know why...</p><p>Regards !</p>]]></content>
			<author>
				<name><![CDATA[sbarabe]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2214</uri>
			</author>
			<updated>2023-12-18T20:43:43Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5282#p5282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5280#p5280" />
			<content type="html"><![CDATA[<p>You can try this example. It compiles. But we haven&#039;t tested it.</p><div class="codebox"><pre><code>// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP32CORE_WIFI_CLOUD
#include &lt;WiFi.h&gt;
#include &lt;WiFiClient.h&gt;
#include &lt;WebServer.h&gt;
#include &lt;RemoteXY.h&gt;
#include &lt;ElegantOTA.h&gt;


// RemoteXY connection settings 
#define REMOTEXY_WIFI_SSID &quot;YOUR_SSID&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;YOUR_PASS&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 19 bytes
  { 255,1,0,0,0,12,0,16,31,1,1,0,24,22,12,12,2,31,0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t button_1; // =1 if button pressed, else =0 

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

} RemoteXY;
#pragma pack(pop)

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

WebServer server(80);


void onOTAStart() {
  // Log when OTA has started
  // &lt;Add your own code here&gt;
}

void onOTAProgress(size_t current, size_t final) {
  // Log every 1 second
}

void onOTAEnd(bool success) {
  // Log when OTA has finished
  // &lt;Add your own code here&gt;
}



void setup() 
{
  RemoteXY_Init (); 
  
  // wait for the RemoteXY to set up the connection
  while (WiFi.status() != WL_CONNECTED) {
    RemoteXY_Handler ();
    delay(10);
  }
  
  server.on(&quot;/&quot;, []() {
    server.send(200, &quot;text/plain&quot;, &quot;Hi! This is ElegantOTA Demo.&quot;);
  });

  ElegantOTA.begin(&amp;server);    // Start ElegantOTA
  // ElegantOTA callbacks
  ElegantOTA.onStart(onOTAStart);
  ElegantOTA.onProgress(onOTAProgress);
  ElegantOTA.onEnd(onOTAEnd);

  server.begin();
  
}

void loop() 
{ 
  RemoteXY_Handler ();
  
  server.handleClient();
  ElegantOTA.loop();
  
  
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay(), use instead RemoteXY_delay() 


}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2023-12-18T08:45:46Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5280#p5280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OTA and RemoteXY cloud server]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5278#p5278" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Is it possible to set OTA in parallel with cloud server connection ?</p><p>For OTA I need to specify a webserver. I have try to had a webserver on port (80), but it doesn&#039;t seem to work. My sketch without RemoteXY GUI works OK, but don&#039;t when GUI is added.</p><p>Maybethere is conflict with an already running webserver with RemoteXY cloud server connection ?</p><p>I use ElegantOTA library, I just need to specify the server : ElegantOTA.begin(&amp;server);</p><p>If it exist, I don&#039;t know how to point/use to the webserver already running from RemoteXY cloud server connection...</p><p>Thank you !</p>]]></content>
			<author>
				<name><![CDATA[sbarabe]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2214</uri>
			</author>
			<updated>2023-12-17T13:13:14Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5278#p5278</id>
		</entry>
</feed>
