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

Method discover

src/tests/utils/bluetooth/socket_bluetooth_test.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::pair<std::string, int> SocketBluetooth::discover (char *device_selector)
72{
73 if ((device_selector == NULL) ||
74 (strcmp (device_selector, BRAINFLOW_TEST_BLUETOOTH_DISCOVERABLE_SELECTOR) != 0))
75 {
76 return std::make_pair<std::string, int> (
77 "", (int)SocketBluetoothReturnCodes::DEVICE_IS_NOT_DISCOVERABLE);
78 }
79
80 return std::make_pair<std::string, int> (
81 BRAINFLOW_TEST_BLUETOOTH_VALID_MAC, (int)SocketBluetoothReturnCodes::STATUS_OK);
82}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected