|
JBImprov
Improv Wi-Fi provisioning over serial and Bluetooth LE
|
Incremental parser for Improv frames in a serial byte stream. More...
#include <JBImprovProtocol.h>
Public Member Functions | |
| void | reset () |
| Forget any partial frame. | |
| bool | feed (uint8_t byte) |
| Process one received byte. | |
| bool | inFrame () const |
| true while a frame has been started but not finished. | |
| JBImprovPacketType | type () const |
| Packet type of the last complete frame. | |
| const uint8_t * | data () const |
| Data of the last complete frame. | |
| uint8_t | length () const |
| Number of bytes in data(). | |
Incremental parser for Improv frames in a serial byte stream.
Bytes that aren't part of a valid frame are skipped, so the same port can carry log output and other data.
| bool JBImprovSerialParser::feed | ( | uint8_t | byte | ) |