krohling/ArduinoPusherClient — pull request #1 by borfast (2012-01-29 14:36:06+00:00)
Title: Fix hashmap

Hi Kevin,

As I described in the ArduinoWebsocketClient, I was getting some nasty errors that could only be related to memory. I found out that they only occurred when I used `PusherClient::bind()`, and since that function was only one line making use of the hash map implementation, the problem would have to be there.

It occurred to me to see if there was any newer version of that implementation and surely enough, there is. I tracked down the most up to date implementation by the same author and it's quite different from the one available on the Arduino website (which, I think, is the one you're using): http://wiring.uniandes.edu.co/source/trunk/wiring/firmware/libraries/HashMap/HashMap.h?revision=1198&view=markup

I got the latest version from his repository and replaced the one on your repository with it. I removed the `#include "Countable.h";` line, since it's not being used. I also made a few minor changes to PusherClient.cpp to adjust it to the new HashMap code and there we go, error gone.

I did add a couple of files along with the new HashMap.h, though, in order to respect the licence and the request to include the Contributors.txt file.