| 431 | } |
| 432 | |
| 433 | std::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 | |
| 449 | std::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) |
nothing calls this directly
no outgoing calls
no test coverage detected