I am using the first spark core that was released. However I downloaded the latest libraries but I am not able to build the code with the following basic code snippet…
Sorry for getting back late. But when I put this inside setup(), I get the same error. I downloaded the fresh libraries as is and just modified the tinker application on the following part and compiled it:
SYSTEM_MODE(MANUAL);
/* This function is called once at start up ----------------------------------*/
void setup()
{
WiFi.on();
WiFi.clearCredentials();
WiFi.setCredentials(“Santhanand”, “8977117950”, WPA2);
WiFi.connect();
//Setup the Tinker application here
//Register all the Tinker functions
Spark.function("digitalread", tinkerDigitalRead);
Spark.function("digitalwrite", tinkerDigitalWrite);
Spark.function("analogread", tinkerAnalogRead);
Spark.function("analogwrite", tinkerAnalogWrite);
}
Still the same error sir.
I think I am missing some headers here. Where are these defined??
I am compiling it using the command line in Linux.
Actually it's there, I didn't even try out my own application. Just downloaded the libraries from github and modified the tinker app's mode to MANUAL and added the Wifi credentials. Then I just compiled it using the make utility and it threw the error.
My file is the application.cpp application file found inside ../firmware/src/
Then I am definitely missing out on some headers and their respective definition files which I guess didn’t come bundled in the libraries that I downloaded.
I am using it it office on a POC but my IT infrastructure doesn’t allow me to connect to the spark cloud. Hence I am using Linux to compile and update the core using dfu-utils instead of the Web IDE.
If anyone has compiled the same using the make utility, please let me know.