#include <BleParser.h>
◆ BleParser()
Construct a new Ble Parser object.
◆ handle_raw_data()
| BleMessage * BleParser::handle_raw_data |
( |
char * |
buffer, |
|
|
int |
length |
|
) |
| |
Given a buffer and buffer length, package the data into a BleMessage class.
- Parameters
-
| buffer | Raw character buffer |
| length | Length of buffer |
- Returns
- BleMessage* A pointer to the working message
◆ package_raw_data()
| int BleParser::package_raw_data |
( |
byte * |
buffer, |
|
|
BleMessage & |
msg |
|
) |
| |
Packs data to be sent to the GUI, modifies the char array that you send it.
- Parameters
-
| buffer | Buffer to hold the serialized data. This will be modified and should be equal to the maximum length that the message could be |
| msg | The message that you would like serialized |
- Returns
- int Length of the buffer used
The documentation for this class was generated from the following files: