Limits with the length of "uri" when using Ciao | Arduino | Forum


Please consider registering

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
Limits with the length of "uri" when using Ciao
No permission to create posts
August 10, 2017
10:02 am
New Member
Forum Posts: 1
Member Since:
August 10, 2017
sp_UserOfflineSmall Offline

What limits apply to the length of "uri" when using Ciao to send a URL to ThingSpeak (free account)?

CiaoData data = Ciao.write(CONNECTOR, SERVER_ADDR, uri); // to send the URL to ThingSpeak?

I am using a Arduino Uno with ESP8266 WiFi built in (not a WiFi Shield) to send Temperature/Humidity data from DHTxx sensors.

My code works with 2 sensors (4 data fields) but fails with 3 sensors.

#define CONNECTOR "rest"
#define SERVER_ADDR ""

#define APIKEY_THINGSPEAK   "my key"


String uri = "/update?api_key=";
uri += "&field1=";
uri += String(h1);
uri += "&field2=";
uri += String(t1);
uri += "&field3=";
uri += String(h2);
uri += "&field4=";
uri += String(t2);

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

Would it better to use

ThingSpeak.writeField(myChannelNumber,1,t1, myWriteAPIKey);

ThingSpeak.writeField(myChannelNumber,2,t2, myWriteAPIKey);


Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: Hans, agrisensezm
37 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:

Archieter, JamesExedo, IrbosHich, brodi, kasko, franklin castro

Administrators: Hans: 387, lee: 457