Go back to the original program. Now add a second LED to the circuit. Program the LED’s to alternate blinks i.e. when LED 1 turns on, LED 2 turns off, then when LED 2 turns on, LED 1 turns off.
Modify the cloud function as follows: Instead of passing a HIGH Or LOW string pass the number of times you would like it to blink Set the function to blink that number of times Finally once it has completed all of the blinking it should turn the LED off
Connecting a microcontroller to the cloud is new to me and this skill dev allowed me to learn how to use Particle.function() to take command from the internet.
From trial and error, I also learned that the input command is a string type and in order to use it as an integer, it needs to be converted using toInt().
You can upload files of up to 20MB using this form.