Class ParseSerialNumber

Class Documentation

class ParseSerialNumber

Parser to read the serial number from a tcp sequence.

Public Functions

ParseSerialNumber()

Constructor of the parser.

bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::SerialNumber &serial_number) const

Parses a tcp sequence to read the serial number of the sensor.

Parameters:
  • buffer – The incoming data sequence.

  • serial_number – Reference to the parsed serial number.

Returns:

If parsing the serial number was successful.

std::string readSerialNumber(std::vector<uint8_t>::const_iterator data_ptr) const