Updating Thingspeak channel | Arduino | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Updating Thingspeak channel
Avatar
kevinhisko
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
April 17, 2012 - 6:53 pm
sp_Permalink sp_Print sp_EditHistory

I am using the cheerlights application to do a simliar project, although once the command is recieved, It will post back to the channel with an update.

 

So when the Machine Command: Green the post back to Channel "The light are now Green"

 

I created a post statement although I can't get it to run within the loop. Any ideas on how to make this work. 

 

         String tsData;

         tsData = "field1=thankyou&status=The lights are now Green"; 
         client.print("POST /update HTTP/1.1n");
         client.print("Host: api.thingspeak.comn");
         client.print("Connection: closen");
         client.print("X-THINGSPEAKAPIKEY: "+writeAPIKey+"n");
         client.print("Content-Type: application/x-www-form-urlencodedn");
         client.print("Content-Length: ");
         client.print(tsData.length());
         client.print("nn");
         client.print(tsData);
Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
32 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

aogomaeqaza

ureomug

itixuwidouzuv

eilimir

memozupi

isejfujajku

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee