Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

Improving variable name. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/RestClient/ThingSpeak/ThingSpeak.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ This example show the interaction between the Ciao Library and the Thingspeak Cl
To run the example you need to register an account on thingspeak.com and create a
new channel by clicking "Channels" section in the website (Channels -> My Channels -> New Channel).
In the new channel you need to add two fields. The first one refers to the humidity data and the second one to the temperature value.
After that, replace the "XXXXXXXXX" value of APIKEY_THINGSPEAK with "Write API key" value reported in the API Keys section of the channel.
After that, replace the "XXXXXXXXX" value of WRITE_APIKEY_THINGSPEAK with "Write API key" value reported in the API Keys section of the channel.

*/

#define CONNECTOR "rest"
#define SERVER_ADDR "api.thingspeak.com"

#define APIKEY_THINGSPEAK "XXXXXXXXXXXXX"
#define WRITE_APIKEY_THINGSPEAK "XXXXXXXXXXXXX"

short hum = 60;
short temp = 22;
Expand All @@ -27,7 +27,7 @@ void setup() {
void loop() {

String uri = "/update?api_key=";
uri += APIKEY_THINGSPEAK;
uri += WRITE_APIKEY_THINGSPEAK;
uri += "&field1=";
uri += String(hum);
uri += "&field2=";
Expand Down