My goal is to turn something on such as the lights in my apartment using Alexa. If i can get a pin to go high or low on the oak, i can figure out the rest with a relay or optotriac.
I followed
https://github.com/rlisle/alexaParticleBridge tutorial but I am stuck.
I created an alexa skill. I have successfully opened it with alexa. I tell her to turn it on. She just responds with the word particle.
I am not sure what to program into the oak to for its input/output. I do not understand what Alexa is communicating to the Oak.
This is the sample .ino oak code:
void setup() {
Serial.begin(57600)
Serial.println("ParticleExample started.")
Particle.function("myFunction",myFunction);
}
void loop() {
// put your main code here, to run repeatedly:
}
int myFunction(String command) {
Serial.println("myFunction called.");
// We don't need to return anything.
// Just return an easy to recognize number for testing
return 123;
}
I tried to view serial monitor to see if it was registering any input, but Arduino just says "Oak Ready Board at COM1 is not available"