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

Method simpleble_adapter_get_count

src/board_controller/ble_lib_board.cpp:100–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100size_t BLELibBoard::simpleble_adapter_get_count (void)
101{
102#ifndef STATIC_SIMPLEBLE
103 std::lock_guard<std::mutex> lock (BLELibBoard::mutex);
104 if (BLELibBoard::dll_loader == NULL)
105 {
106 safe_logger (spdlog::level::err, "BLELibBoard::dll_loader is not initialized");
107 return 0;
108 }
109 size_t (*func) (void) =
110 (size_t (*) (void))BLELibBoard::dll_loader->get_address ("simpleble_adapter_get_count");
111 if (func == NULL)
112 {
113 safe_logger (
114 spdlog::level::err, "failed to get function address for simpleble_adapter_get_count");
115 return 0;
116 }
117
118 return func ();
119#else
120 return ::simpleble_adapter_get_count ();
121#endif
122}
123
124bool BLELibBoard::simpleble_adapter_is_bluetooth_enabled (void)
125{

Callers

nothing calls this directly

Calls 1

get_addressMethod · 0.45

Tested by

no test coverage detected