rpiswag
November 13, 2015, 3:45pm
1
I just set up a glow.fish account and I have a piece of code that blinks and led and sends events to the particle cloud. How can I send this data to glow.fish. Here is the code
void setup(){
pinMode(D7, OUTPUT);
}
void loop(){
digitalWrite(D7, HIGH);
Spark.publish("ledStatus", "HIGH");
delay(1000);
digitalWrite(D7, LOW);
Spark.publish("ledStatus", "LOW");
delay(1000);
}
Moors7
November 13, 2015, 3:53pm
2
What have you tried so far?
rpiswag
November 13, 2015, 3:55pm
3
I went to glowfi.sh and added an app and named it blink-led.I then got an auth key and an auth secret key.
MORA
November 13, 2015, 4:02pm
4
Theres some introduction using a photon here : http://docs.glowfi.sh/docs/real-time-sensor-anomaly-detection , theres code linked below the video.
Seems you send json data over http, so reasonably straight forward.
1 Like