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

Function params_to_string

cpp_package/src/board_shim.cpp:16–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14/////////////////////////////////////////
15
16std::string params_to_string (struct BrainFlowInputParams params)
17{
18 json j;
19 j["serial_port"] = params.serial_port;
20 j["ip_protocol"] = params.ip_protocol;
21 j["ip_port"] = params.ip_port;
22 j["ip_port_aux"] = params.ip_port_aux;
23 j["ip_port_anc"] = params.ip_port_anc;
24 j["ip_address"] = params.ip_address;
25 j["ip_address_aux"] = params.ip_address_aux;
26 j["ip_address_anc"] = params.ip_address_anc;
27 j["mac_address"] = params.mac_address;
28 j["other_info"] = params.other_info;
29 j["timeout"] = params.timeout;
30 j["serial_number"] = params.serial_number;
31 j["file"] = params.file;
32 j["file_aux"] = params.file_aux;
33 j["file_anc"] = params.file_anc;
34 j["master_board"] = params.master_board;
35 std::string post_str = j.dump ();
36 return post_str;
37}
38
39/////////////////////////////////////////
40//////////// logging methods ////////////

Callers 1

BoardShimMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected