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

Method bluetooth_write_data

src/board_controller/bt_lib_board.cpp:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175int 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
190int BTLibBoard::bluetooth_get_data (char *data, int len)
191{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected