<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1810&amp;type=atom" />
	<updated>2024-06-07T07:54:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1810</id>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5574#p5574" />
			<content type="html"><![CDATA[<p>Thanks for this info, it is runing for me too.<br />Anyway, i hope that the remoteXY library will be updated and will be Ok for the new version of ESP32 library !</p>]]></content>
			<author>
				<name><![CDATA[serge2804]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=365</uri>
			</author>
			<updated>2024-06-07T07:54:26Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5574#p5574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5573#p5573" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vikuro55 wrote:</cite><blockquote><p>If you&#039;re using the board: esp32 by Espressif 3.0.0 or 3.0.1 try changing it to version 2.0.17, it fixed my issue.</p></blockquote></div><p>Thanks, this seems to work. Atleast the code generated from the editor now compiles.</p>]]></content>
			<author>
				<name><![CDATA[martins.bembers]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2793</uri>
			</author>
			<updated>2024-06-06T19:22:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5573#p5573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5572#p5572" />
			<content type="html"><![CDATA[<p>If you&#039;re using the board: esp32 by Espressif 3.0.0 or 3.0.1 try changing it to version 2.0.17, it fixed my issue.</p>]]></content>
			<author>
				<name><![CDATA[vikuro55]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2796</uri>
			</author>
			<updated>2024-06-05T17:46:15Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5572#p5572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5565#p5565" />
			<content type="html"><![CDATA[<p>same problem here, unable to compil with the same setting, Wifi and ESP32</p>]]></content>
			<author>
				<name><![CDATA[serge2804]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=365</uri>
			</author>
			<updated>2024-06-03T13:22:02Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5565#p5565</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5561#p5561" />
			<content type="html"><![CDATA[<p>Including the WiFi.h library must be before including the RemoteXY.h library</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-06-03T08:14:11Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5561#p5561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5557#p5557" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>justGuner wrote:</cite><blockquote><p>As a sanity check, I&#039;ve tried compiling the original code generated by the RemoteXY editor, and it still spits out the same error.</p></blockquote></div><p>I&#039;m having similar issue. I&#039;m trying to make cloud server remote.</p><p>For me also compiling the code from editor, gives similar error, referenced to a line in RemoteXY library:</p><div class="codebox"><pre><code>In file included from C:\Users\marti\Documents\Arduino\xddd\xddd.ino:39:
C:\Users\marti\Documents\Arduino\xddd\xddd.ino: In function &#039;void setup()&#039;:
c:\Users\marti\Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:212:121: error: expected type-specifier before &#039;CRemoteXYComm_WiFi&#039;
  212 |   #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &amp;RemoteXY, new CRemoteXYConnectionCloud (new CRemoteXYComm_WiFi (REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_CLOUD_SERVER, REMOTEXY_CLOUD_PORT, REMOTEXY_CLOUD_TOKEN), REMOTEXY_ACCESS_PASSWORD)
      |                                                                                                                         ^~~~~~~~~~~~~~~~~~
C:\Users\marti\Documents\Arduino\xddd\xddd.ino:71:3: note: in expansion of macro &#039;RemoteXY_Init&#039;
   71 |   RemoteXY_Init ();
      |   ^~~~~~~~~~~~~

exit status 1

Compilation error: exit status 1</code></pre></div><br /><p>Really would appretiate some soulution. If the problem is in the library, is there perhaps a workaround, to make it work without using the library?</p>]]></content>
			<author>
				<name><![CDATA[martins.bembers]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2793</uri>
			</author>
			<updated>2024-06-02T15:16:07Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5557#p5557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5550#p5550" />
			<content type="html"><![CDATA[<p>As a sanity check, I&#039;ve tried compiling the original code generated by the RemoteXY editor, and it still spits out the same error.</p>]]></content>
			<author>
				<name><![CDATA[justGuner]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2790</uri>
			</author>
			<updated>2024-05-28T00:12:53Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5550#p5550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[error: expected type-specifier before 'CRemoteXYComm_WiFiPoint']]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5549#p5549" />
			<content type="html"><![CDATA[<p>I am trying to compile a code for an esp32 in Arduino IDE, and when I try I get the same error.<br />I&#039;ve set the board as a NodeMCU-32S.<br />Reinstalling the RemoteXY library didn&#039;t fix it.</p><p>Here&#039;s the code:</p><div class="codebox"><pre><code>/*
   -- rc drift car --
   
   This source code of graphical user interface 
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.13 or later version 
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.13.13 or later version;
     - for iOS 1.10.3 or later version;
    
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.    
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// you can enable debug logging to Serial at 115200
//#define REMOTEXY__DEBUGLOG    

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


// RemoteXY connection settings 
#define REMOTEXY_WIFI_SSID &quot;RC_DRIFTCAR&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;
#define REMOTEXY_SERVER_PORT 6377


#include &lt;RemoteXY.h&gt;
#include &lt;WiFi.h&gt;
#include &lt;ESP32Servo.h&gt;

// RemoteXY GUI configuration  
#pragma pack(push, 1)  
uint8_t RemoteXY_CONF[] =   // 61 bytes
  { 255,3,0,0,0,54,0,17,0,0,0,200,1,200,80,1,1,3,0,4,
  16,2,18,73,48,163,26,4,135,29,62,16,176,162,26,10,160,61,13,13,
  57,4,247,214,70,79,82,87,65,82,68,0,214,82,69,86,69,82,83,69,
  0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  int8_t slider_01; // from 0 to 100
  int8_t slider_02; // from -100 to 100
  uint8_t pushSwitch_01; // =1 if state is ON, else =0

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

} RemoteXY;   
#pragma pack(pop)
 
/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

int x, y;

const int rel_1 = 23;
const int rel_2 = 22;

Servo servo;
Servo ESC;

void setup() 
{
  RemoteXY_Init (); 
  
 // pinMode (servo, OUTPUT);
 // pinMode (ESC, OUTPUT);
  pinMode (rel_1, OUTPUT);
  pinMode (rel_2, OUTPUT);

  servo.attach(1);
  ESC.attach(3);
  // TODO you setup code
  
}

void loop() 
{ 
  RemoteXY_Handler ();

  if (RemoteXY.pushSwitch_01 = 1)
  {
    digitalWrite(rel_1, HIGH);
    digitalWrite(rel_2, HIGH);
  }

  else
  {
    digitalWrite(rel_1, LOW);
    digitalWrite(rel_2, LOW);
  }

  x = map(RemoteXY.slider_01, 0, 0, 100, 180);
  y = map(RemoteXY.slider_02, -100, 0, 100, 180);

  servo.write(y);
  ESC.write(x);
  
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay(), use instead RemoteXY_delay() 


}</code></pre></div><p>Here&#039;s the error mesage:</p><div class="quotebox"><blockquote><p>In file included from C:\Users\erdog\Documents\Arduino\rc_driftcar\rc_driftcar.ino:35:<br />C:\Users\erdog\Documents\Arduino\rc_driftcar\rc_driftcar.ino: In function &#039;void setup()&#039;:<br />c:\Users\erdog\Documents\Arduino\libraries\RemoteXY\src/RemoteXY.h:208:122: error: expected type-specifier before &#039;CRemoteXYComm_WiFiPoint&#039;<br />&nbsp; 208 |&nbsp; &nbsp;#define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &amp;RemoteXY, new CRemoteXYConnectionServer (new CRemoteXYComm_WiFiPoint (REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_SERVER_PORT), REMOTEXY_ACCESS_PASSWORD)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~~~~~~~<br />C:\Users\erdog\Documents\Arduino\rc_driftcar\rc_driftcar.ino:75:3: note: in expansion of macro &#039;RemoteXY_Init&#039;<br />&nbsp; &nbsp;75 |&nbsp; &nbsp;RemoteXY_Init ();<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp;^~~~~~~~~~~~~<br />Multiple libraries were found for &quot;WiFi.h&quot;<br />&nbsp; Used: C:\Users\erdog\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0\libraries\WiFi<br />&nbsp; Not used: C:\Users\erdog\Documents\Arduino\libraries\WiFi<br />exit status 1</p><p>Compilation error: exit status 1</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[justGuner]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2790</uri>
			</author>
			<updated>2024-05-27T20:07:07Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5549#p5549</id>
		</entry>
</feed>
