Channel update | 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
Channel update
Avatar
Studvio
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
July 25, 2017 - 12:03 pm
sp_Permalink sp_Print sp_EditHistory

Hi all, I'm new around here, and I am a free user (i.e. 15 secs. delay between updates)

According to https://thingspeak.com/pages/license_faq,

"A message is defined as a write of up to 8 fields of data to a ThingSpeak channel"

However, using the following Arduino lines of code

ThingSpeak.begin(ThingSpeakClient);
ThingSpeak.writeField(myChannelNumber, 2, 0, myWriteAPIKey);
ThingSpeak.writeField(myChannelNumber, 4, 0, myWriteAPIKey);
ThingSpeakClient.stop();

will only result in updating of field 2 only, and not field 4 as well.

Adding a 15 secs. delay between line 2 and 3 in the code above (delay(15000);) will result in both fields being updated when I run the code.

Could anyone shed some light into this matter please? Thank you.

ThingSpeak.begin(ThingSpeakClient);
ThingSpeak.setField(2, 0);
ThingSpeak.setField(4, 0);
ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);
ThingSpeakClient.stop();

 

Later edit: Solved, thanks!Laugh

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
23 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:

epicpaymentsny

DanielBobby

mercedeszw18

ujuxoketate

olihfez

winnieeq69

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee