| 173 | } |
| 174 | |
| 175 | int BTLibBoard::bluetooth_write_data (const char *command, int len) |
| 176 | { |
| 177 | int (*func_config) (char *, int, char *) = |
| 178 | (int (*) (char *, int, char *))dll_loader->get_address ("bluetooth_write_data"); |
| 179 | if (func_config == NULL) |
| 180 | { |
| 181 | safe_logger (spdlog::level::err, "failed to get function address for bluetooth_write_data"); |
| 182 | return (int)BrainFlowExitCodes::GENERAL_ERROR; |
| 183 | } |
| 184 | |
| 185 | int res = func_config ( |
| 186 | const_cast<char *> (command), len, const_cast<char *> (params.mac_address.c_str ())); |
| 187 | return res; |
| 188 | } |
| 189 | |
| 190 | int BTLibBoard::bluetooth_get_data (char *data, int len) |
| 191 | { |
nothing calls this directly
no test coverage detected