DvG_StreamCommand
|
A lightweight Arduino library to listen to a stream, such as Serial or Wire, for incoming commands (or data packets in general) and act upon them. More...
#include <Arduino.h>
Go to the source code of this file.
Classes | |
class | DvG_StreamCommand |
Class to manage listening to a stream, such as Serial or Wire, for incoming ASCII commands (or ASCII data packets in general) and act upon them. More... | |
class | DvG_BinaryStreamCommand |
Class to manage listening to a stream, such as Serial or Wire, for incoming binary commands (or binary data packets in general) and act upon them. More... | |
Functions | |
float | parseFloatInString (const char *str_in, uint16_t pos=0) |
Safely parse a float value in C-string str_in from of position pos . More... | |
bool | parseBoolInString (const char *str_in, uint16_t pos=0) |
Safely parse a boolean value in C-string str_in from of position pos . More... | |
int | parseIntInString (const char *str_in, uint16_t pos=0) |
Safely parse an integer value in C-string str_in from of position pos . More... | |
A lightweight Arduino library to listen to a stream, such as Serial or Wire, for incoming commands (or data packets in general) and act upon them.
float parseFloatInString | ( | const char * | str_in, |
uint16_t | pos = 0 |
||
) |
Safely parse a float value in C-string str_in
from of position pos
.
bool parseBoolInString | ( | const char * | str_in, |
uint16_t | pos = 0 |
||
) |
Safely parse a boolean value in C-string str_in
from of position pos
.
str_in
is empty or pos
is past the str_in
length.int parseIntInString | ( | const char * | str_in, |
uint16_t | pos = 0 |
||
) |
Safely parse an integer value in C-string str_in
from of position pos
.