|
7 | 7 | ThingSpeak ( https://www.thingspeak.com ) is a free IoT service for prototyping
|
8 | 8 | systems that collect, analyze, and react to their environments.
|
9 | 9 |
|
10 |
| - Copyright 2015, The MathWorks, Inc. |
| 10 | + Copyright 2016, The MathWorks, Inc. |
11 | 11 |
|
12 | 12 | Documentation for the ThingSpeak Communication Library for Arduino is in the extras/documentation folder where the library was installed.
|
13 | 13 | See the accompaning licence file for licensing information.
|
@@ -126,16 +126,16 @@ void loop() {
|
126 | 126 | Serial.println();
|
127 | 127 | #endif
|
128 | 128 | #ifdef SPARK
|
129 |
| - Spark.publish("thingspeak-weather", "Current weather conditions in Natick: ",60,PRIVATE); |
130 |
| - Spark.publish("thingspeak-weather", String(temperature) + " degrees F, " + String(humidity) + "% humidity",60,PRIVATE); |
131 |
| - Spark.publish("thingspeak-weather", "Wind at " + String(windSpeed) + " MPH at " + String (windDirection) + " degrees",60,PRIVATE); |
| 129 | + Particle.publish("thingspeak-weather", "Current weather conditions in Natick: ",60,PRIVATE); |
| 130 | + Particle.publish("thingspeak-weather", String(temperature) + " degrees F, " + String(humidity) + "% humidity",60,PRIVATE); |
| 131 | + Particle.publish("thingspeak-weather", "Wind at " + String(windSpeed) + " MPH at " + String (windDirection) + " degrees",60,PRIVATE); |
132 | 132 | if(rainfall > 0)
|
133 | 133 | {
|
134 |
| - Spark.publish("thingspeak-weather", "Pressure is " + String(pressure) + " inHg, and it's raining",60,PRIVATE); |
| 134 | + Particle.publish("thingspeak-weather", "Pressure is " + String(pressure) + " inHg, and it's raining",60,PRIVATE); |
135 | 135 | }
|
136 | 136 | else
|
137 | 137 | {
|
138 |
| - Spark.publish("thingspeak-weather", "Pressure is " + String(pressure) + " inHg",60,PRIVATE); |
| 138 | + Particle.publish("thingspeak-weather", "Pressure is " + String(pressure) + " inHg",60,PRIVATE); |
139 | 139 | }
|
140 | 140 | #endif
|
141 | 141 |
|
|
0 commit comments