Category Archives: Twitter

Looking into twitter again

Having a look into using Twitter again to work with the Arduino in sending HTTP requests from a hashtag.

Lucky i found something that might help me achieve what I am looking for and it’s called TweetControl by TeamSpeak. Now this works by setting up a hashtag to execute a HTTP request, this request will then

So using thingHTTP you set up the HTTP request which allows you to set what type of request it is,  the URL, Username, Password, Headers, Body and Parse string.

The other half or Tweet Controller is a simple set up which allows you to set who can tweet (a user or everyone), the hashtag being used as the trigger and the HTTP request that it set’s off.

Arduino and Twitter 2

I did however manage to get the Arduino to Post a tweet on my twitter feed.  Done by using a post request to the twitter api and as long as you get a twitter token, the tweet is accepted.


#include <SPI.h> // needed in Arduino 0019 or later
#include <WiFi.h>
#include <Twitter.h>
char ssid[] = “username”;
char pass[] = “password”;

// Your Token to Tweet (get it from
Twitter twitter(“token here”);

// Message to post
char msg[] = “Automatic tweet!”;

void setup()
WiFi.begin(ssid, pass);
// or you can use DHCP for automatic IP address configuration.
// WiFi.begin(mac);

Serial.println(“connecting …”);
if ( {
// 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) {
} else {
Serial.print(“failed : code “);
} else {
Serial.println(“connection failed.”);

void loop()