Go Down

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

Abelavit

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.

Frisky

Peter
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
client.println(time);

Abelavit

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

mkwired


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:

117.17.80.199
255.255.255.0
117.17.80.1
168.126.63.1
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.

Mark-OE


whataslacker

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.


rpabl001

HI, i am trying to post on my twitter account and I cant, anyone can help me put in this pls.

Delta_G

HI, i am trying to post on my twitter account and I cant, anyone can help me put in this pls.
Should probably start your own thread for your own question. 

Have you read and understood what these other posters were doing?  They seem to have it working.  What have you tried? 
Ad hoc, ad loc, and quid pro quo.  So little time - so much to know!  ~Jeremy Hillary Boob Ph.D

rpabl001

Thanks for your quick response. Yes I have read everything but i am not being able to post anything on twitter. I have the w5200 ethernet shield, dont know if its the same as the others.

Delta_G

Thanks for your quick response. Yes I have read everything but i am not being able to post anything on twitter. I have the w5200 ethernet shield, dont know if its the same as the others.
First:  Read this:  How To Use This Forum

Second:  Go start your own thread for this question.  You can provide a link to this one if you want.

Third:  In your new thread, post your code.  All of your code.  Use code tags when you do.  We can't tell what you've done wrong without seeing your code.  (Code tags explained in point 7 of the link in the First step above)
Ad hoc, ad loc, and quid pro quo.  So little time - so much to know!  ~Jeremy Hillary Boob Ph.D

PaulMurrayCbr

Any sort of 'bot activity on twitter means that your account gets blocked. Twitter sort of feels that it is not really in the business of providing a universal info bus to anyone who wants one.
http://paulmurraycbr.github.io/ArduinoTheOOWay.html

zoomkat

Two possible things, 1) I think twitter uses https which the arduino etherent shield setup does not support, and 2) I think the w5200 ethernet shield uses a different library than the w5100 ethernet shield.
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

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!

Arduino
via Egeo 16
Torino, 10131
Italy