New WiFly compatible library to work with Arduino and Ninja Blocks#3
Open
ozzieg wants to merge 6 commits intoninjablocks:masterfrom
Open
New WiFly compatible library to work with Arduino and Ninja Blocks#3ozzieg wants to merge 6 commits intoninjablocks:masterfrom
ozzieg wants to merge 6 commits intoninjablocks:masterfrom
Conversation
Added IsTick flag inspired by another developer
|
Looks great, I will get @theojulienne to have a look over it when he gets a chance. We are a bit snowed under at the moment sorry. Thanks for your contribution. |
Author
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.