Upload to ThingSpeak limited to 2 fields | ThingSpeak API | 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
Upload to ThingSpeak limited to 2 fields
Avatar
s161025
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
1
March 10, 2017 - 6:07 am
sp_Permalink sp_Print sp_EditHistory

 Hello again,

I am trying to upload data from a DHT11 sensor and a few others to my thingspeak channel, but I only can 2 fields and not all the 4. I enabled the fields from settings. The code I am using is taken from an example for UNO WiFi DevEd here. When I comment field 1 and 2, the others are working. The same happens when I comment field 3, 4. Any ideas?

 

void dataupload() {
String uri = "/update?api_key=";
uri += APIKEY_THINGSPEAK;
//uri += "&field1=";
//uri += String(weight, 3); // 3 decimals to thingSpeak
//uri += "&field2=";
//uri += String(pump);
uri += "&field3=";
uri += String(temperature);
uri += "&field4=";
uri += String(humidity);

// test prints
Serial.print(F("A1 value: "));
Serial.println(analogRead(A1));
Serial.println(weight, 3);
Serial.println(pump);
Serial.print(millis() / 1000); //in seconds
Serial.println(F(" sec"));
// Serial.println(temperature);
// Serial.println(humidity);

Ciao.println(F("Send data on ThingSpeak Channel"));

CiaoData data = Ciao.write(CONNECTOR, SERVER_ADDR, uri);

if (!data.isEmpty()) {
Ciao.println( "State: " + String (data.get(1)) );
Ciao.println( "Response: " + String (data.get(2)) );
}
else {
Ciao.println("Write Error");
}
}

Avatar
Griwen
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
2
April 22, 2017 - 10:45 am
sp_Permalink sp_Print

The same problem

Avatar
Vinod

Forum Posts: 179
sp_UserOfflineSmall Offline
Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: cstapels
21 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:

yeseniara11

RomanFug

JamesPes

RobertBak

ScottSmiva

Amourhotte

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee