Hello!
I am fairly new in programming and having difficulties with my code.
I want to connect Android SMS to a blinking LED on my particle. I connected it through IFTTT, though my code does not verify due to this problem : expected primary-expression before ‘.’ token
delay(1000); I cannot find the solution on the internet and have been looking at it the whole day now…
My code is as following:
int ledpin = D7;
void light(const char *event,const char *data)
{
digitalWrite(ledpin,HIGH);
delay(1000);
}
void setup()
{
//light("","");
particle.subscribe("text", light, MY_DEVICES);
}
void loop()
{
digitalWrite(ledpin,LOW);
}