Losing the first field | Arduino | 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
Losing the first field
No permission to create posts
July 15, 2011
6:12 pm
Avatar
JChristensen
Grand Blanc, MI

Gold
Members
Forum Posts: 35
Member Since:
July 15, 2011
sp_UserOfflineSmall Offline

Just getting started here, have things working fairly well, or mostly.  Sending three fields, the first one doesn't seem to be making it, field2 and field3 are fine.  field1 is just empty or null, <field1 nil="true"/> in the XML view.

Below is the POST, which I trapped by replacing client.print with Serial.print and then copying it from the monitor window.  I'm not seeing what the problem is.  My channel is http://www.thingspeak.com/channels/878

POST /update HTTP/1.1
Host: api.thingspeak.com
X-THINGSPEAKAPIKEY: XXXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded
Content-Length: 34
Connection: close

field1=1214&field2=3&field3=70.8

 

July 15, 2011
7:28 pm
Avatar
JChristensen
Grand Blanc, MI

Gold
Members
Forum Posts: 35
Member Since:
July 15, 2011
sp_UserOfflineSmall Offline

Found the problem, wasn't getting the content length quite right.  Picky, this POST... Embarassed

Forum Timezone: America/New_York

Most Users Ever Online: 114

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

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457