I would really love to use the Spark Core for real-world applications, however I am having some trouble setting it up right now.
A real-world sensor would capture data (for example temperature) every second and send it to a webserver. Now here is what the problems are:
- Each second needs to be interrupt driven so that it is each second, this can be solved by the timer library
- The data needs to be send asynchronous and non-blocking to the webserver (and if there is no connection saved in flash). And we can not stop the polling to acces the temperature variable.
- When the core tries to reconnect to the cloud or to the webserver, the temperature measuring each second still needs to take place, it may not block it.
Spark professionals out there, can you please get me in the right direction, this is a simple real-word example that should be able to be solved with Spark.