Calling spark.publish() from non spark device?

Let say i am using visual studio, can i make a function call spark.publish() and not from spark?

I believe they’re planning on introducing that somewhere in the future. It’s mentioned in the CLI/javascript I believe. Currently it’s not yet supported, so the answer to your question would probably be: no, you cannot (yet) do that.

What would you like to use it for? Perhaps we can offer some alternatives.

2 Likes

@Moors7 is correct. There have been demos @ Spark showing a PC application talking with the cloud just as a SparkCore or Photon might. This is actually why the HAL (Hardware abstraction layer) development exists. You can, with a little work, do what you are trying to do by “impersonating” an existing SparkCore

1 Like