Iot33 and Alexa not behaving as expected

Experimenting with Alexa and arduino integration for the first time and having some issues.

I'm simply trying to get Alexa to turn on an LED on my breadboard using the Arduino. I'm convinced it's something very simple that I'm overlooking.

I have been through the tutorials and examples and I go Alexa to turn the Built-in LED on and off successfully. But as soon as I try to make it set one of the digital pins to HIGH, it just does not work.

It's not a power issue because if I run simple loop in the main body the LED will turn on and off without an issue.

tried to go very simple with the code to eliminate issues, but still missing something.

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 
  pinMode(12,OUTPUT);

// Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
}


void onLEDChange()  {
digitalWrite(12,HIGH)
}

Can anyone point out the obvious mistake(s) I'm making?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.