TeensyNanoExoCode
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BleParser Class Reference

#include <BleParser.h>

Public Member Functions

 BleParser ()
 Construct a new Ble Parser object.
 
BleMessagehandle_raw_data (char *buffer, int length)
 Given a buffer and buffer length, package the data into a BleMessage class.
 
int package_raw_data (byte *buffer, BleMessage &msg)
 Packs data to be sent to the GUI, modifies the char array that you send it.
 

Constructor & Destructor Documentation

◆ BleParser()

BleParser::BleParser ( )

Construct a new Ble Parser object.

Member Function Documentation

◆ 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
bufferRaw character buffer
lengthLength of buffer
Returns
BleMessage* A pointer to the working message
Here is the call graph for this function:

◆ 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
bufferBuffer to hold the serialized data. This will be modified and should be equal to the maximum length that the message could be
msgThe message that you would like serialized
Returns
int Length of the buffer used
Here is the call graph for this function:

The documentation for this class was generated from the following files: