MakeController Tweeter library

May 5, 2009 at 10:30 pm (Uncategorized)

Here it is, a Tweeter library for MakeControler.

Why? Well, it seemed like a good idea couse it has built in network support, so there wasn’t to much work.

The library might be (is?) a bit buggy and should be used with caution. Feel free to modify code (and do not forget to send me a copy 🙂 ).

Functions are well explained in the header file, still here is a quick copy (to make post look longer 😉 ):


int Twitter_PostUpdate(char* tweet, char* user);
/*
** Used to post update to Tweeter. This is NOT THREAD SAFE. Function will pause execution of current program/thread until it is able to post.
** Parameters:
** – tweet: text to post, make sure it does not exceed 140 chars.
** – user: base64 encoded username:password (search online for info on how to encode your user/pass)
** Returns:
** – ERROR_SOCKET if socket can not be opend
** – ERROR_POST if it was not possible to send all data
** – 0 if everything went ok 🙂
*/

int Twitter_GetUpdate(char* username, char* output);
/*
** Used to get LAST update from desired user
** Parameters:
** – username: name of the user (eg. jelengar)
** – output: pointer to char array into wich output gets posted (make sure it is large enough -> 140)
** Returns:
** – ERROR_SOCKET if socket can not be opend
** – 0 if everything went ok 🙂
*/

Download

If you decide to use this library in your own project please let me know about it.

Tweet away 🙂

PS: feel free to folow me on http://twitter.com/jelengar

Advertisements

6 Comments

  1. Make Controller Tweeter library - machine quotidien said,

    […] sent me a link to this interesting Twitter library for the Make Controller. Tom Slejko wrote the code and it’s really well documented. I […]

  2. Daily DIY Network - Science Projects Plans Guides » Blog Archive » Make Controller Tweeter library said,

    […] sent me a link to this interesting Twitter library for the Make Controller. Tom Slejko wrote the code and it’s really well documented. I haven’t had a […]

  3. Click World News » Blog Archive » Make Controller Tweeter library said,

    […] sent me a link to this interesting Twitter library for the Make Controller. Tom Slejko wrote the code and it’s really well documented. I haven’t had a […]

  4. The How-To Blog » Make Controller Tweeter library said,

    […] Liam sent me a link to this interesting Twitter library for the Make Controller. Tom Slejko wrote the code and it’s really well documented. I […]

  5. Twitter Library Available for Make Controller Hackers! | TweetHacking.com - Twitter Hacks said,

    […] Twitter Library Available for Make Controller Hackers! // Make Controller is a 32-bit ATMEGA-based microcontroller you can build cool robots with, someone has created a Twitter library so you can make Twitter apps on the fly, check it out here. […]

  6. Kevin Reed Groce said,

    Can you tell me how to use the Library ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: