Is there a way to print to the web IDE? I’d like to be able to do everything from the web IDE because I’m not able to install everything to program locally.
I don’t see any sort of print-to-web-IDE function.
Thanks
Is there a way to print to the web IDE? I’d like to be able to do everything from the web IDE because I’m not able to install everything to program locally.
I don’t see any sort of print-to-web-IDE function.
Thanks
Hi @AlexMiller,
That’s a feature we’ve been wanting to add, but in the meantime you can use Spark.publish to track events on your core. Try adding a line like:
Spark.publish("logging", "some message");
Just make sure you’re not publishing more often than about once a second.
You can watch your events by modifying and opening this link:
https://api.spark.io/v1/devices/events/?access_token=YOUR_ACCESS_TOKEN
In your browser pick “View Source”, and then you can watch the messages scroll by.
If you have the Spark-cli installed ( https://github.com/spark/spark-cli ), you can simply type:
spark subscribe mine
Thanks,
David