<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — RemoteXY_Init () with more than one WiFi SSID/password]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1785&amp;type=atom" />
	<updated>2024-04-29T06:30:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1785</id>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5504#p5504" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Scrotus]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2310</uri>
			</author>
			<updated>2024-04-29T06:30:42Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5504#p5504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5501#p5501" />
			<content type="html"><![CDATA[<p>Hi Scrotus; can you post the full code, with the several SSIDs (SSID2, SSID2... etc? ? i could not do it.</p>]]></content>
			<author>
				<name><![CDATA[Alaa.kamal122]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2755</uri>
			</author>
			<updated>2024-04-28T07:56:35Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5501#p5501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5475#p5475" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Scrotus]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2310</uri>
			</author>
			<updated>2024-04-02T10:49:34Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5475#p5475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5472#p5472" />
			<content type="html"><![CDATA[<p>Yes. You can see this in the library examples.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-04-01T16:36:12Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5472#p5472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RemoteXY_Init () with more than one WiFi SSID/password]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5471#p5471" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Scrotus]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2310</uri>
			</author>
			<updated>2024-04-01T10:03:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5471#p5471</id>
		</entry>
</feed>
