I am working on a IoT project here at my university. Because the university internet is WPA-Enterprise, we are having difficulty connected our Cores to the Internet. Instead, we have a router hooked up, and are attempting to utilize a local cloud that is not connected to the internet. I followed the instructions found here:
and got everything working properly as far as I can tell. However, now I want to prove that I can flash code from Netbeans onto the core. I was wondering if anyone could walk me through how to blink an LED by flashing the code locally. When I try to edit the application.cpp as shown in the video, I’m unable to successfully build the code.
It can build it fine, but when I compile I get this error:
arm-none-eabi-g++.exe: error: /cygdrive/C/Spark/core-firmware/src/application.cpp: No such file or directory
arm-none-eabi-g++.exe: fatal error: no input files
compilation terminated.
COMPILE FILE FAILED (exit value 1, total time: 55ms)
I have pretty much abandoned Netbeans at this point, as it was way over my head.
New question: I want to use Spark.publish() to send data (temp or something) from the core to a .txt file on my local cloud. Are there any resources for using Spark.publish() without being connected to the internet? All the examples I’ve found required an internet connection.
and we got our data to print into this .txt file on the desktop! Now we are looking to implement this sort of thing directly in the application.cpp script. We can’t figure out the proper syntax to tell spark.subscribe() to log the data to a specific place in C:\