Let say i am using visual studio, can i make a function call spark.publish() and not from spark?
What would you like to use it for? Perhaps we can offer some alternatives.
@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