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

Method get_payload

src/board_controller/emotibit/emotibit.cpp:565–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565std::vector<std::string> Emotibit::get_payload (const std::string &package_string, int data_len)
566{
567 std::vector<std::string> res;
568 std::vector<std::string> package = split_string (package_string, PAYLOAD_DELIMITER);
569 if (package.size () >= (size_t)HEADER_LENGTH + (size_t)data_len)
570 {
571 res.insert (res.begin (), package.begin () + HEADER_LENGTH,
572 package.begin () + (size_t)HEADER_LENGTH + (size_t)data_len);
573 }
574 return res;
575}
576
577int Emotibit::create_adv_connection ()
578{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected