MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / create_package

Method create_package

src/board_controller/emotibit/emotibit.cpp:433–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433std::string Emotibit::create_package (const std::string &type_tag, uint16_t package_number,
434 const std::string &data, uint16_t data_length, uint8_t protocol_version,
435 uint8_t data_reliability)
436{
437 std::string header = create_header (
438 type_tag, 0, package_number, data_length, protocol_version, data_reliability);
439 if (data_length == 0)
440 {
441 return header + PACKET_DELIMITER_CSV;
442 }
443 else
444 {
445 return header + PAYLOAD_DELIMITER + data + PACKET_DELIMITER_CSV;
446 }
447}
448
449std::string Emotibit::create_package (const std::string &type_tag, uint16_t package_number,
450 std::vector<std::string> data, uint8_t protocol_version, uint8_t data_reliability)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected