An Arduino library to tokenize and parse commands received over a serial port.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead of scogswell:master.
Latest commit 5a161b6 Mar 2, 2017
Permalink
Failed to load latest commit information.
examples ok Feb 26, 2017
README.txt edit readme Feb 27, 2017
SerialCommand.cpp ok Mar 2, 2017
SerialCommand.h ok Mar 2, 2017
keywords.txt ok Feb 26, 2017

README.txt

An Arduino library to tokenize and parse commands received over a serial port. 

Initially documented here: http://arduino.vn/node/1497

This version is the one on Github. 

/******************************************************************************* 
SerialCommand - An Arduino library to tokenize and parse commands received over
a serial port. 
Based on 2011-2013 Steven Cogswell  <steven.cogswell@gmail.com>
Copyright 2017 Ngo Huynh Ngoc Khanh <ngohuynhngockhanh@gmail.com>
http://arduino.vn

Version 2017.   

Version History:
May 11 2011 - Initial version
May 13 2011 -	Prevent overwriting bounds of SerialCommandCallback[] array in addCommand()
			defaultHandler() for non-matching commands
Mar 2012 - Some const char * changes to make compiler happier about deprecated warnings.  
           Arduino 1.0 compatibility (Arduino.h header) 
Oct 2013 - SerialCommand object can be created using a SoftwareSerial object, for SoftwareSerial
           support.  Requires #include <SoftwareSerial.h> in your sketch even if you don't use 
           a SoftwareSerial port in the project.  sigh.   See Example Sketch for usage. 
Oct 2013 - Conditional compilation for the SoftwareSerial support, in case you really, really
           hate it and want it removed.  
Feb 2017 - Allow command and arguments into two buffers JSON

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
***********************************************************************************/