Have been trying for a number of days now to get my Core to publish - but it just doesn’t seem to want to.
I have stripped down to a bare metal setup to try to diagnose.
The app I have looks like this:
void setup() {
}
void loop() {
delay(1000);
Spark.publish("motion-detected");
}
Which is successfully flashed to my core using the web IDE.
If I try to listen to the events with the following CURL (on Linux)…
curl -H "Authorization: Bearer 9xxxxxxxxxxxxxxxxxxxxxxxxxxb" https://api.spark.io/v1/devices/events/
I get the following:
:ok
Then occasionally some blank new lines every few seconds.
I also tried using great HTML/Javascript tutorial (https://community.spark.io/t/tutorial-getting-started-with-spark-publish/3422) - but I just get “Waiting for data”.
I’ve copied the Access Token and Device ID directly from the Web IDE.
Am I doing something silly? Please help!