MakeController Tweeter library
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
Make Controller Tweeter library - machine quotidien said,
May 6, 2009 at 3:21 pm
[...] 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 [...]
Daily DIY Network - Science Projects Plans Guides » Blog Archive » Make Controller Tweeter library said,
May 6, 2009 at 4:00 pm
[...] 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 [...]
Click World News » Blog Archive » Make Controller Tweeter library said,
May 6, 2009 at 4:06 pm
[...] 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 [...]
The How-To Blog » Make Controller Tweeter library said,
May 6, 2009 at 6:54 pm
[...] 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 [...]
Twitter Library Available for Make Controller Hackers! | TweetHacking.com - Twitter Hacks said,
May 6, 2009 at 8:04 pm
[...] 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. [...]
Kevin Reed Groce said,
June 22, 2009 at 2:02 am
Can you tell me how to use the Library ?