@Gizmo, one very good option for M2M is to use MQTT. There is already a library ported for the Spark and topics in the Community you can search like this one:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| MQTT Broker appropriated | 2 | 1634 | November 19, 2014 | |
| Spark to Spark communication for simple digital input-output transmission | 3 | 1188 | June 8, 2014 | |
| [Submission] MQTT Library and Sample | 97 | 45508 | January 30, 2020 | |
| MQTT or other local communication between devices | 0 | 411 | November 6, 2021 | |
| Integration to Existing Building Management Systems | 2 | 2084 | October 10, 2013 |