Upload to ThingSpeak limited to 2 fields | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Upload to ThingSpeak limited to 2 fields
No permission to create posts
March 10, 2017
6:07 am
Avatar
s161025
New Member
Members
Forum Posts: 3
Member Since:
March 6, 2017
sp_UserOfflineSmall Offline

 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");
}
}

April 22, 2017
10:45 am
Avatar
Griwen
New Member
Members
Forum Posts: 3
Member Since:
April 22, 2017
sp_UserOfflineSmall Offline

The same problem

April 23, 2017
10:34 am
Avatar
Vinod

MathWorks
Members
Forum Posts: 210
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline
Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: samdavies
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

Lakshmanaprakash S B, bettetj60, ronnievw3, bessiesj18, Pavan kumar, Williampup

Administrators: Hans: 387, lee: 457