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

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

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:
16 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