Skip to content
Black holes all data sent to it. Any .reads, .available, .peeks return -1, false, etc.
C++ Shell Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/NullStreamExample
.travis.yml
NullStream.cpp
NullStream.h
README.md
initexamples.sh

README.md

Build Status #NullStream

Black holes all data sent to it. Any .reads, .available, .peeks return -1, false, etc.

##Install As usual, download zip, unzip and rename to remove the dash character and place in your Arduino Libraries folder, on MacOSX ~/Documents/Arduino/libraries/

##Use Create a NullStream.

NullStream nullStream;

Now reads and writes to nullStream will be blackholed.

nullStream.write('a');
You can’t perform that action at this time.