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

Method config_board

src/board_controller/openbci/ganglion_wifi.cpp:19–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19int GanglionWifi::config_board (std::string conf, std::string &response)
20{
21 const char *config = conf.c_str ();
22 if ((config == NULL) || (strlen (config) == 0))
23 {
24 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
25 }
26 if ((keep_alive) && ((config[0] == 'z') || (config[0] == 'Z')))
27 {
28 safe_logger (
29 spdlog::level::err, "For Ganglion WIFI impedance works only if streaming is stopped");
30 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
31 }
32 if (config[0] == 'z')
33 {
34 is_cheking_impedance = true;
35 return (int)BrainFlowExitCodes::STATUS_OK;
36 }
37 if (config[0] == 'Z')
38 {
39 is_cheking_impedance = false;
40 return (int)BrainFlowExitCodes::STATUS_OK;
41 }
42 return send_config (config);
43}
44
45int GanglionWifi::start_stream (int buffer_size, const char *streamer_params)
46{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected