Bad Request with 2 Fields on Arduino | 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
Bad Request with 2 Fields on Arduino
Avatar
Hans
Natick, MA

Forum Posts: 390
sp_UserOfflineSmall Offline
1
July 2, 2011 - 1:55 am
sp_Permalink sp_Print sp_EditHistory

From Nick:

I’m getting a the following message when posting to more than one field:

HTTP/1.1 400 Bad Request
Server: nginx/0.8.53
Date: Wed, 29 Jun 2011 10:41:21 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Status: 400
Cache-Control: no-cache

1
0
0

…disconnected.

this is the line I’ve modified:

if(!client.connected() && (millis() – lastConnectionTime > updateInterval))
{
updateThingSpeak(“field1=” + analogPin0 + “&field2=” + analogPin1);
}

It works when I only use field 1. What’s the problem here?

 

Avatar
nickv
New Member
Forum Posts: 2
sp_UserOfflineSmall Offline
2
July 4, 2011 - 6:04 am
sp_Permalink sp_Print

I've made the channel public here:

https://www.thingspeak.com/channels/812

Forum Timezone: America/New_York

Most Users Ever Online: 114

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

candacele1

WilliamBer

roxieob18

Metawatch

ozayagw

ubabeutiti

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee