Arduino Twitter

Hi, I'm trying to send a tweet on my VERY new arduino, I'm getting this error

SimplePost.cpp:5:25: error: EthernetDNS.h: No such file or directory SimplePost.cpp:6:21: error: Twitter.h: No such file or directory SimplePost:14: error: 'Twitter' does not name a type SimplePost.cpp: In function 'void setup()': SimplePost:26: error: 'twitter' was not declared in this scope

What am i doing wrong?

I know it must be a simple problem, it's my first go!

thanks

What am i doing wrong?

How the hell should we know?
Where’s your code?
Have you installed the libraries correctly?

soz!

#if defined(ARDUINO) && ARDUINO > 18 // Arduino 0019 or later
#include <SPI.h>
#endif
#include <Ethernet.h>
#include <EthernetDNS.h>
#include <Twitter.h>

// Ethernet Shield Settings
byte mac = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// substitute an address on your own network here
byte ip = { 192, 168, 2, 250 };

// Your Token to Tweet (get it from http://arduino-tweet.appspot.com/)
Twitter twitter(“XXXX”);

// Message to post
char msg = “Hello, World! I’m Arduino!”;

void setup()
{
delay(1000);
Ethernet.begin(mac, ip);
Serial.begin(9600);

Serial.println(“connecting …”);
if (twitter.post(msg)) {
// Specify &Serial to output received response to Serial.
// If no output is required, you can just omit the argument, e.g.
// int status = twitter.wait();
int status = twitter.wait(&Serial);
if (status == 200) {
Serial.println(“OK.”);
} else {
Serial.print("failed : code ");
Serial.println(status);
}
} else {
Serial.println(“connection failed.”);
}
}

void loop()
{
}

And did you install the libraries correctly?

in user/documents/arduino in mac os x

Sorry,don’t do Apple.

thanks though

Open the IDE. Use Sketch + Import Library to see a list of currently installed libraries. Use your OS's finder application to find one of those names - it will be a directory. The Ethernet and Twitter libraries go in the same folder as the found library.

Thank you, I have the libraries working. I wonder if you can help me a little more, using the code i pasted above, can you point me in the right direction as to why i still cant get onlive with my Arduino uno and ethernet shield.

Beginner...

Very beginner!!!

thanks

Is it the official ethernet shield? I doubt that is the MAC address that was on the label on it.

Is that IP address correct? What is the IP address of your machine. Typically, the third value is 1 or 10.

Perhaps you need to define a subnet mask and use it, and some other value, in the Ethernet begin statement. Lots of people have had trouble getting the Ethernet shield to work with the 2 argument begin method.

Finally, I'd try using the board as a client, first. Verify that it can fetch data before trying to push data out.

Thank you, will try all that!

thanks for your help!