Go Down

Topic: Twittering with Arduino+Ethernet Shield (Read 5163 times) previous topic - next topic


Oh great...so it was posting twice.
Its working perfectly now.
Had to do the posting part in void loop.
Thanks for your help guys.


I think that after the Ardunio programs it resets and runs his code. Then he is watching it via serial monitor to debug and that is why he is double posting or tweeting that will give you a 403 since he is sending the same message. He will need to change his tweet some too since he can't keep sending the same thing.
Maybe read millis
Code: [Select]

unsigned long time;

time = millis();
 //prints time since program started


Oh great...so it was posting twice.
Its working perfectly now.
Did the posting bit in void loop
Thanks guys for your help.


I am using my universities network so due to restrictions, I cannot use DHCP to automatically assign the IP hence iam doing it manually.
Ok i declared the DNS server IP:

IPAddress myDns(168, 126, 63, 1);
Ethernet.begin(mac, ip, myDns);

It gives the following result:
connecting ...
HTTP/1.0 403 Forbidden
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Vary: Accept-Encoding
Date: Thu, 24 Jan 2013 01:19:45 GMT
Server: Google Frontend

Error 403 - Status is a duplicate.
failed : code 403

what might be wrong now?

There maybe a problem in the future if some other computer starts using that assigned IP assigned.  It would be nice if the university would give you another IP address for your *second* computer.



Earlier in the week I had my Arduino Duemilanove with ethernet shield tweeting the SimplePost examlpe from my office PC, Now that I have it at home I cannot get it to work. Have attempted some of the stuff above to try and get reading but nothing. I have made no changes to the SimplePost example other than the IP and OAUTH token. No idea why it would work on one network and not another. Ideas?

Major newbie here.

Any help would be much appreciated.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131