Back to Parent

I changed the number from 50 to 2.5, and added a new cloud function "Red" to turn on the light. It took a long time to figure out how to connect to ifttt platform. I changed the function command from string to number because I don't why string don't work.

int TurnOn(String command){

if(command==TurnOn){

}


int setRed(String command){

int number = atoi(command);

if(number ==1){

red = number;

}

return red;

}


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0