base64encode glitch in twittersend sample

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
bru
 
Posts: 1
Joined: Mon May 26, 2008 6:09 am

base64encode glitch in twittersend sample

Post by bru »

Hi!
I'm a newbie on this forum so I take the chance to introduce me. Done.

Now, talking about more interesting stuff, I've an ethernet shield and have been playing a bit with the twittersend sketch.

I found that although generally it works great, it was failing the http basic authorization on one of my twitter accounts (http://twitter.com/bruduino - check it out if you want to follow the life of my little gadget :P ).

After poking around a while with the code, I found that simply intializing the "i" counter in the base64encode function fixed the behavior.

I suppose it's a compiler issue (maybe it's not setting variables to 0 on init by default) but I thought this may be of help to somebody else too.

Cheers,
Bru

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

good point. ive fixed the example, should be good to go now.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”