This one has me stumped.
I use this construct in most of my projects:
//--------------- WiFi declarations ---------------
// WiFi declarations
#define SKETCH_NAME "motorControlV2"
#define SKETCH_VERSION "2.0"
#include <ESP8266WiFi.h> // Not needed if also using the Arduino OTA Library...
#include <Kaywinnet.h> // WiFi credentials
char macBuffer[24]; // Holds the last three digits of the MAC, in hex.
char hostName[24]; // Holds nodeName + the last three bytes of the MAC address.
#ifndef nodeName
char nodeName[] = SKETCH_NAME; // Give this node a name
#endif
But for some reason that I can't find, I get an error. But only in this sketch.
#define SKETCH_NAME <motorControlV2>
#define SKETCH_VERSION <2.0>
#include <ESP8266WiFi.h> // Not needed if also using the Arduino OTA Library...
#include <Kaywinnet.h> // WiFi credentials
char macBuffer[24]; // Holds the last three digits of the MAC, in hex.
char hostName[24]; // Holds nodeName + the last three bytes of the MAC address.
#ifndef nodeName
char nodeName[] = SKETCH_NAME; // Give this node a name
#endif
It says that the 3rd line of the fragment you posted is the 12th line of your sketch. What are the lines above the ones you posted?
Compiles fine for me:
//--------------- WiFi declarations ---------------
// WiFi declarations
#define SKETCH_NAME "motorControlV2"
#define SKETCH_VERSION "2.0"
// #include <ESP8266WiFi.h> // Not needed if also using the Arduino OTA Library...
// #include <Kaywinnet.h> // WiFi credentials
char macBuffer[24]; // Holds the last three digits of the MAC, in hex.
char hostName[24]; // Holds nodeName + the last three bytes of the MAC address.
#ifndef nodeName
char nodeName[] = SKETCH_NAME; // Give this node a name
#endif
void setup() {}
void loop() {}