Pages: [1]   Go Down
Author Topic: Twitter library 1.3.0 connection failed.  (Read 1565 times)
0 Members and 1 Guest are viewing this topic.
Nijmegen, Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a Arduino Uno R3 with ethernetshield(W5100), Arduino IDE 1.0.1. My program has a webserver and a fixed ip address (192.168.1.200)  and I created some buttons on a website to execute some functions, that works fine. In one of the function I want to post a message to Twitter. I use the Twitter library 1.3.0 from here http://playground.arduino.cc/Code/TwitterLibrary. I followed the instruction. When the arduino has a fixed ip (Ethernet.begin(mac,ip)smiley-wink the connection fails. When it gets an IP from DHCP server(Ethernet.begin(mac)smiley-wink, connection is succesfull. Does anyone know why it fails when I use a fixed IP address? I want to use a fixed IP so I can forward an external incoming port to the fixed ip of the arduino.
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Some DHCP servers will allow you to reserve a specific IP address for a device given it's MAC address.
That way your arduino Ethernet shield would get the same IP every time. Maybe your DHCP server can do that ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

You may like to look at the answer I received to a similar problem.

It may help?

http://arduino.cc/forum/index.php/topic,132387.0.html

regards

Gary
Logged

Nijmegen, Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Quest UK, it seems to work
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

good day! can I ask how did you do that? I'm having a problem in connecting to the internet. I followed all the instruction in this site http://arduino-tweet.appspot.com/. Unfortunately, I can't have any post on twitter. The serial monitor always say "connecting ..." . Thanks a lot!
Logged

Nijmegen, Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I added : byte gateway[] = {   192, 168, 1, 254 };
and changed: Ethernet.begin(mac,ip); to Ethernet.begin(mac,ip, gateway, gateway);
I also found that sending same messages twice are blocked by twitter.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My shield unit is ENC28J60 Ethernet Shield. Does it work using that library? I read some posts and they said that there's something in this unit and it's not compatible with this library. thanks!
Logged

Pages: [1]   Go Up
Jump to: