ninjablocks/arduino-ninja-blocks — pull request #3 by ozzieg (2013-10-25 10:45:19+00:00)
Title: New WiFly compatible library to work with Arduino and Ninja Blocks

Added **NinjaBlockWiFly** class to encapsulate and implement the Wi-Fly version of the NinjaBlockEthernet library. It utilizes the **WiFlyHQ** library for communicating to the netherworld wirelessly.

I have had to update the existing code to reduce the memory footprint by utilizing PSTR, str*_P, and F macros. It allowed me to include other libraries as a result of this reduction. I have also had to change how the data is received (sending/posting end is almost exactly the same) because of how WiFly operates over the Serial port. I have had poll available() and then read one char at a time.

I have also added the libraries into this commit because of the memory reduction modifications. There is a lot of unneeded code inside RCSwitch which takes up valuable Flash space.

I also added a "Simple.ino" example to demonstrate the usage of Wi-Fly and even the **RCSwitch** library. My original intention of this library was to have a wireless hub for my tri-state RF electrical plugs and this does it really well.

Thanks to all of the original work, otherwise this would not have been easy. I hope you merge it in.