Command that will execute a callback function when recongised. More...
#include <uartDriver.h>
Public Attributes | |
const char * | command |
Command string. | |
void(* | callback )(const char *arg) |
Function that will be called if command is recongised. |
Command that will execute a callback function when recongised.
void( * command::callback)(const char *arg) |
Function that will be called if command is recongised.
If there is a string of characters between the recognised string and newline, preceded by whitepace, it will be given as an argument to the callback function. If the argument is longer than UART_CMD_ARG_LEN, the callback will not be executed.
arg | argument |
const char* command::command |
Command string.
Must not include newline or whitespace.