1 (edited by graham2550 2023-01-05 01:18:07)

Topic: RemoteXY error:expected type-specifier before 'CRemoteXYComm_WiFiPoint

Full Compile error message in Arduino IDE:

In file included from E:\Arduino\World Edge Lit Clock\Edge_Lit_Clock_V2\Edge_Lit_Clock_V2.ino:41:
E:\Arduino\World Edge Lit Clock\Edge_Lit_Clock_V2\Edge_Lit_Clock_V2.ino: In function 'void setup()':
e:\Arduino\libraries\RemoteXY\src/RemoteXY.h:182:148: error: expected type-specifier before 'CRemoteXYComm_WiFiPoint'
   #define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, REMOTEXY_ACCESS_PASSWORD, new CRemoteXYConnectionServer (new CRemoteXYComm_WiFiPoint (REMOTEXY_WIFI_SSID, REMOTEXY_WIFI_PASSWORD), REMOTEXY_SERVER_PORT))
                                                                                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~
E:\Arduino\World Edge Lit Clock\Edge_Lit_Clock_V2\Edge_Lit_Clock_V2.ino:213:3: note: in expansion of macro 'RemoteXY_Init'
   RemoteXY_Init ();
   ^~~~~~~~~~~~~

Everything in code is correct, board is ESP32S

Line 213 mentioned above is :
  RemoteXY_Init ();

Any other info required please ask.
Thanks

2

Re: RemoteXY error:expected type-specifier before 'CRemoteXYComm_WiFiPoint

I have (somehow) fixed the problem.
I had a lot of code for NTP time update, commented it all out and it compiled OK.
I uncommented a bit at a time and eventually it compiled, no change to my code so I can't really explain what was wrong.
Oh well, sil la vie.