Hello people of the Forums, see I am having a problem with my arduino sketch.
I am trying to run this sketch from the Twitter library.
#if defined(ARDUINO) && ARDUINO > 18 // Arduino 0019 or later
#include <SPI.h>
#endif
#include <Ethernet.h>
//#include <EthernetDNS.h> Only needed in Arduino 0022 or earlier
#include <Twitter.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
Twitter twitter("<<< your token here >>>");
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)) {
int status = twitter.wait();
if (status == 200) {
Serial.println("OK.");
} else {
Serial.print("failed : code ");
Serial.println(status);
}
} else {
Serial.println("connection failed.");
}
}
void loop()
{
}
I could get the ethernet shield to run some sketchs but I couldn't get the twitter one to work. Im running on mac with arduino UNO R3, and ethernet shield. Can't get it to post a tweet. It compiles well but then on serial it says
I got error 0 in Serial Monitor and How can I get these? I checked the arduino library but I only know my local I.P. Could you guide me on how to get these: