MKR NB 1500 programming problem

I wrote a program for a driveway gate alarm that runs flawlessly by repeatedly unplugging and plugging the USB cable back in and then activating and deactivating a switch which sounds an alarm and sends an SMS message while the IDE is active on the PC but the program won't work correctly if I close the IDE. I have the same problem using external power instead of USB power.

Has anyone had a similar issue? Does anyone have any suggestions?

My program didn't run when the IDE was not active because it had statements like "serial.print". I commented all of them and now the program runs fine.

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