| 17 | |
| 18 | |
| 19 | int 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 | |
| 45 | int GanglionWifi::start_stream (int buffer_size, const char *streamer_params) |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected