资 源 简 介
This project has moved here:
https://bitbucket.org/ehsmaes/cmdcallback/wiki/Home
It is no longer maintained here.
-
-
-
Arduino Library - Serial Command/Response Callback
This library allows you to interact with Arduino devices from a host computer over serial lines in a simple way. The library was designed for use with wireless serial ports such as the EWRF 3022(http://swechtrading.se/zencart/index.php?mainpage=productinfo&cPath=52&products_id=614) but can just as easily be used with the standard USB-Serial interface.
Core features
Attach your Arduino sketch functions to commands
The library parses commands and arguments
A matched keyword (command) with the correct number of arguments triggers a callback to the sketch function.
The argument vector is passed to the callback function.
Parse, validate and cast arguments