It's a modified snipped from the Botanicalls project based on Arduino:
The original code can be downloaded here:
Further information concerning arduino can be found here:
As you can see, I hardcoded the Supertweet api adress as host and
added the right content type (thanks Mr Blog). In comparison to the
original (check "twitter.pde") I added a "_nl" fragment to several
// send the HTTP command, ie "GET /username/"
// next, the authentication
putstringSS("Authorization: Basic ");
putstring("Authorization: Basic ");
"_nl" stands for "new line" I assume. however, the effect was that
every information is printed in it's own line like with a "println"
command. Mr. Blog posted code in this discussion which gave me the
As a result I get this from the Arduino serial monitor:
POST /1/statuses/update.xml HTTP/1.1
Authorization: Basic [secret]
status=Current Moisture: 79%25
HTTP/1.1 200 OK
Date: Sun, 24 Oct 2010 21:05:24 GMT
Content-Type: text/xml; charset=ISO-8859-1
Date: Sun, 24 Oct 2010 21:05:25 GMT
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
The tweet is sent proper, everything works well. Supertweet is really
a nice peace of help – otherwise my Botanicall would be dead as I am
not able to write an OAuth-method in Arduino by myself.
I hope that this is going to help you a little...
On Oct 24, 9:52 pm, Jacob Bockelmann <bockelmann.ja...@gmail.com
> Interesting. That might be the key to my project. Can you post your
> code concerning the post function?
> Sent from my iPhone