Class CoLaCommand

Class Documentation

class CoLaCommand

Public Functions

CoLaCommand(std::vector<uint8_t> buffer)

Construct a new CoLaCommand from the given data buffer.

~CoLaCommand()
const std::vector<uint8_t> &getBuffer()

Get the binary data buffer.

CoLaCommandType::Enum getType()

Get the type of command.

const char *getName()

Get the name of command.

size_t getParameterOffset()

Get offset in bytes to where first parameter starts.

CoLaError::Enum getError()

Get error.

Public Static Functions

static CoLaCommand networkErrorCommand()

Create a command for network errors.