Bad Request with 2 Fields on Arduino | Arduino | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
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
Bad Request with 2 Fields on Arduino
No permission to create posts
July 2, 2011
1:55 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

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?

 

July 4, 2011
6:04 am
Avatar
nickv
New Member
Members
Forum Posts: 2
Member Since:
June 28, 2011
sp_UserOfflineSmall Offline

I've made the channel public here:

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

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457