Two talking Spark cores [SOLVED]

Hello Internet ;),

yesterday I received my cores (two of them) and I would love to make them talk to each other. So far, I managed it to turn on and off several LED's using a curl API function call performed by a terminal.

curl https://api.spark.io/v1/devices/CORE_ID/FUNCTION -d access_token=ACCESS_TOKEN

And now my question comes in, is it possible to call a function of Core_1 from Core_2 using the API and cloud?

Then my deepest dreams would come true, because then I could build a "sensor station" (Core_1) which makes its data visible on a second "receiving station" several kilometers away using the cloud.

Clee

1 Like

Spark.subscribe() is what you need!

http://docs.spark.io/firmware/#data-and-control-spark-subscribe

1 Like

Oh of course, i’ve just read over it without paying to much attention to the “publish/subscribe”-section (my false) :slight_smile: Thank you very much

1 Like