<?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_Init () with more than one WiFi SSID/password]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1785</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1785&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in RemoteXY_Init () with more than one WiFi SSID/password.]]></description>
		<lastBuildDate>Mon, 29 Apr 2024 06:30:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5504#p5504</link>
			<description><![CDATA[<p>You just need to copy whatever SSID and password you want to use into the WFName and WFPassword char arrays, using for example strcpy, then the code I posted above .&nbsp; Eg:-</p><div class="codebox"><pre><code>strcpy( WFName, &quot;MyWifi&quot;);
strcpy( WFPassword, &quot;123456789&quot;);

remotexy = new CRemoteXY (
      RemoteXY_CONF_PROGMEM, 
      &amp;RemoteXY, 
      new CRemoteXYConnectionCloud (
        new CRemoteXYComm_WiFi (
        WFName,       // REMOTEXY_WIFI_SSID
        WFPW ),          // REMOTEXY_WIFI_PASSWORD
        &quot;cloud.remotexy.com&quot;,   // REMOTEXY_CLOUD_SERVER
        6376,                   // REMOTEXY_CLOUD_PORT
        REMOTEXY_CLOUD_TOKEN  // REMOTEXY_CLOUD_TOKEN
      )
    );</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Scrotus)]]></author>
			<pubDate>Mon, 29 Apr 2024 06:30:42 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5504#p5504</guid>
		</item>
		<item>
			<title><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5501#p5501</link>
			<description><![CDATA[<p>Hi Scrotus; can you post the full code, with the several SSIDs (SSID2, SSID2... etc? ? i could not do it.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa.kamal122)]]></author>
			<pubDate>Sun, 28 Apr 2024 07:56:35 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5501#p5501</guid>
		</item>
		<item>
			<title><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5475#p5475</link>
			<description><![CDATA[<p>Thank you.&nbsp; For anyone else who finds this thread in the future, this is the code I used (this is for the ESP32 Wifi Cloud).&nbsp; WFName and WFPW are char arrays that can then set to whatever credentials needed in the code.</p><div class="codebox"><pre><code>#define WF_MAX_LEN 64 
char WFName[ WF_MAX_LEN ] = REMOTEXY_WIFI_SSID ; // string UTF8 end zero
char WFPW[ WF_MAX_LEN ] = REMOTEXY_WIFI_PASSWORD ; // string UTF8 end zero

//Use this instead of RemoteXY_Init ();

remotexy = new CRemoteXY (
      RemoteXY_CONF_PROGMEM, 
      &amp;RemoteXY, 
      new CRemoteXYConnectionCloud (
        new CRemoteXYComm_WiFi (
        WFName,       // REMOTEXY_WIFI_SSID
        WFPW ),          // REMOTEXY_WIFI_PASSWORD
        &quot;cloud.remotexy.com&quot;,   // REMOTEXY_CLOUD_SERVER
        6376,                   // REMOTEXY_CLOUD_PORT
        REMOTEXY_CLOUD_TOKEN  // REMOTEXY_CLOUD_TOKEN
      )
    );</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Scrotus)]]></author>
			<pubDate>Tue, 02 Apr 2024 10:49:34 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5475#p5475</guid>
		</item>
		<item>
			<title><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5472#p5472</link>
			<description><![CDATA[<p>Yes. You can see this in the library examples.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Mon, 01 Apr 2024 16:36:12 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5472#p5472</guid>
		</item>
		<item>
			<title><![CDATA[RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5471#p5471</link>
			<description><![CDATA[<p>At the moment to set the Wifi network you want to connect to they are set in:-</p><p>#define REMOTEXY_WIFI_SSID &quot;ssid&quot;<br />#define REMOTEXY_WIFI_PASSWORD &quot;password&quot;</p><p>Then this connects to the wifi:-</p><p>&nbsp; RemoteXY_Init (); </p><p>Is there any way to give RemoteXY different SSIDs and passwords so we can change wifi network, eg:-</p><p> RemoteXY_Init ( &quot;SSID2&quot;, &quot;PASSWORD2&quot; );</p>]]></description>
			<author><![CDATA[null@example.com (Scrotus)]]></author>
			<pubDate>Mon, 01 Apr 2024 10:03:40 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5471#p5471</guid>
		</item>
	</channel>
</rss>
