Code in IoT runs twice

Why is code in IoT cloud running twice?

I just set up a MKR1010 and testing with a pushbutton on my dashboard to control a LED.

I have a simple TRUE/FALSE triggered by a pushbutton. But each time I push the button on my dashboard Arduino run the code twice. Tried on iPhone app and dashboard on web.

Even if I turn the LED on and delay 5000ms before turning it off it will turn on for another 5000ms.

Any help will be appreciated.

void onBryterChange() {

Not familiar with MKR1010. But I would advise to post complete code, not just a function.

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