Ok so that code compiled. Here is the code that I can't get to compile:
Particle.function("doorSwitch", doorSwitch)
int led;
void setup()
{
pinMode(10, OUTPUT);
//Particle.variable("led", led);
}
void loop()
{
led = 1;
digitalWrite(10, HIGH);
delay(500);
led = 0;
digitalWrite(10, LOW);
delay(500);
}
int doorSwitch(String arg)
{
}
I also just downloaded the new boards 1.0.1
I was able to get the variable to work now as well, so now I just can't get this function call to work.