Need help posting data using w5100 Ethernet shield and it does not appear on local Thingspeak server after uploading data. | 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
Need help posting data using w5100 Ethernet shield and it does not appear on local Thingspeak server after uploading data.
Avatar
km3
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
June 1, 2017 - 11:53 am
sp_Permalink sp_Print sp_EditHistory

Hello,

Hello,
I'm trying to monitor my DHT11 usage with arduino, i can see that local thingspeak does not getting any dots on graphs ?

I can see that Real thingspeak (apt.thingspeak.com) is getting dots on graphs normally .

What might be wrong, here is the code summary:

------------

#include
#include
#include

// ThingSpeak Settings
char thingSpeakAddress[] = "192.168.1.55";
String writeAPIKey = "apikey";

-----------

void ReportTemperatureToThingspeak(int temperature, int humidity, double dewPoint)
{
// Use short field names i.e. 1 instead of field1
String fields = "1=" + String(temperature, DEC);
fields += "&2=" + String(humidity, DEC);
Serial.println(fields);

if (client.connect(thingSpeakAddress, 3000))
{
Serial.println("Connected to thingspeak.com");

// Create HTTP POST Data
client.print("POST /update HTTP/1.1
");
client.print("Host:192.168.1.55
");
client.print("Connection: close
");
client.print("X-THINGSPEAKAPIKEY: "+writeAPIKey+"
");
client.print("Content-Type: application/x-www-form-urlencoded
");
client.print("Content-Length: ");
client.print(fields.length());
client.print("

");
client.print(fields);

Serial.print(fields);
Serial.print("
");
Serial.println("Fields sent sent to http://www.thingspeak.com");
delay(TEN_SECONDS);
}
else
-----------

Forum Timezone: America/New_York

Most Users Ever Online: 114

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

winnieeq69

AutoCheernpen

Bostermet

engladNed

iivenul

olewaeayafaku

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee