Batching data from core and doing a http request

Is there any instructions on how to batching something like temp data from core and do a http request.

I want to do something like every second record the temperature data. after 50 readings send all the data to a http endpoint/webhook.

Is serially executing http request for each piece of data seems inefficient who is there a way to thread network i/o request?

I’m using a Spark Core with a Internet Button v1.0

I love the platform/tooling so far with spark.

To store the data locally, you’d just need to have an array (e.g. float temps[60]; for a minute of readings) that takes up your individual readings.
And once you want to transfer your data just read back the contents of that array to push it to your server.


I’ll move your topic to the “General” category, since it doesn’t really fit into “Troubleshooting”.