Suitability of Spark as compared to Arduino

OK @daneboomer , now I get it. You are running into the problem that subscribing to events on a Core currently depends on the TCP connection to cloud being continuous. Interruptions in that connection cause the subscription to be lost. You can call subscribe again but only upto four times.

Please see this thread:

Some people have taken to reseting their core on a timer to work-around this but that seems a bit extreme.