Hello, I am trying to insert a web server taken from here (part 16) into my surveillance code and am getting this error. I then reduced the code to the minimal still causing the same error message
ajeter:6: error: variable or field 'XML_response' declared void
ajeter:6: error: 'EthernetClient' was not declared in this scope
ajeter.ino:10:6: warning: unused parameter 'cl' [-Wunused-parameter]
variable or field 'XML_response' declared void
AWOL:
I wouldn't normally put anything before my #includes.
YMMV.
That is necessary if there are #ifdef statements used. The IDE has some strange ideas where to put the #include statements it adds. Defining a useless variable as the first line of the file gives the IDE a known insertion point.