This is in a file called test.ino, compiling from the Web IDE. I get the following:
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/application.h:29,
from test.cpp:2:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
#warning "Defaulting to Release Build"
^
test.cpp:3:1: error: 'TeddyBear' does not name a type
TeddyBear *InitialiseMicros( void );
^
make: *** [test.o] Error 1
What is going on here? TeddyBear does name a type! Iām thinking I have forgotten something Arduinoish because the code doesnāt compile in the Arduino environment either. However, stick it into Visual Studio 2012, add an empty main method and it compiles fine.
What am I doing wrong?
It sounds like you might have accidentally cut-and-pasted too much code from the example. The GET command is an HTTP command that you might do in web browser, not in the core firmware. If you post your code we can clear this up.
Iām using the example at http://docs.spark.io/examples/ āMeasuring the temperatureā with no changes, that is why I am surprised it doesnāt work. I am using my deviceās ID and access token. I am new at this so I am probably missing something obvious.
You definitely cut and paste too far. The end of the core firmware is the curly brace at the bottom of the first āboxā.
The next āboxā has web commands that let you access the cloud. A good example are the curl commands ā curl is a command line tool on pc/Linux/Mac that does the kind of web requests you can do in a browser.