I have two spark cores - core1 and core2
When a input D0 in core1 is closed, i want to close a relay located on core2. I am think to use a spark.publish() function (i am right or exist another kind of function for that?) as communication between two cores. But after read Spark tutorials, i dont know how to do that with two spark cores.