Getting Started with example code: Connection to ThingSpeak failed | Arduino | Forum
Topic RSS
1:42 am
May 30, 2012
OfflineHello,
I'm using the sample code from https://github.com/iobridge/ThingSpeak-Arduino-Examples/blob/master/Ethernet/Arduino_to_ThingSpeak.ino
The only thing I am modifying are my generated mac address and writeAPIkey which I got from the site after creating a device and channel.
The device is connected to my network, but not thingspeak. This is what my serial port spits out:
Connecting Arduino to network... Arduino connected to network using DHCP Connection to ThingSpeak failed (1)
using Arduino Uno, Ethernet shield, and 1.0.1 IDE
Any Ideas?
Thanks.
So, it is NOT the new Arduino IDE.
I just downloaded 1.0.1, copy and pasted the ThingSpeak Client Code from GitHub, and added my writeAPIKey… and everything worked right away.
Output from Serial Monitor:
Connecting Arduino to network...
Arduino connected to network using DHCP
Connecting to ThingSpeak... HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sat, 02 Jun 2012 17:50:51 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding Status: 200 ETag: "9fb4651c05b2ed70fba5afe0b039a550" Cache-Control: max-age=0, private, must-revalidate 4 6428 0 ...disconnected
---
My guess now is that your home network is not giving the Arduino an IP address. I think you are looking at a networking issue or DHCP issue on the Arduino Library.
10:23 am
June 3, 2012
OfflineI'm not able to connect either:
Arduino 1.0.1, I have created a unique MAC address device, and have entered the API key
I am getting an IP Address…BUT connection is failing.
Connecting Arduino to network... Arduino connected to network using DHCP 192.168.0.12 Connection to ThingSpeak failed (1) Connection to ThingSpeak failed (2) Connection to ThingSpeak failed (3) Connection to ThingSpeak failed (4)
question...when creating the device in ThingSpeak...
do I need to enter a public IP address,
public port number and local IP address stuff?
Most Users Ever Online: 38
Currently Online: Malden
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
JChristensen: 26
vespapierre: 21
CorBee: 18
bgardner: 12
harrisandrew73: 10
Eng_michel: 10
Member Stats:
Guest Posters: 0
Members: 3499
Moderators: 0
Admins: 3
Forum Stats:
Groups: 4
Forums: 15
Topics: 180
Posts: 588
Newest Members: peterpan666, Malden, oleronas, lirtwelljero, swomensboots, turgo
Administrators: Hans (167), lee (41), akinsgre (9)








Log In
Register
Home


