Not sure what I'm doing wrong. I have two boolean variables both are read/write and have tried both "on change" and periodic with the read designated one.
I am just trying to get comfortable with the cloud iot integration and I have managed to be able to switch blinking on and off with a simple if statement dependent on the bool that I am setting on the dashboard. That works great and reacts immediately. I cannot for the life of me get the dashboard to show the other bool value changing. I can see it changing locally on the board via printing the status on the serial monitor but it doesn't change on the dashboard.
Here's what I have in the void loop. I haven't put anything in the other variable loops but I tried messing with it a little to no avail.
if (commandBlink == true) {
digitalWrite(led, HIGH);
blink = true;
delay(500);
digitalWrite(led, LOW);
blink = false;
delay(500);
}
else
{
digitalWrite(led, LOW);
blink = false;
}
Any ideas?