Getting Started with example code: Connection to ThingSpeak failed | Arduino | Forum
May 30, 2012
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
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.
June 3, 2012
I'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?
June 3, 2012
Most Users Ever Online: 38
Currently Online: Malden
Currently Browsing this Page:
Guest Posters: 0
Newest Members: peterpan666, Malden, oleronas, lirtwelljero, swomensboots, turgo
Administrators: Hans (167), lee (41), akinsgre (9)