MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / unpair

Function unpair

Tactility/Source/bluetooth/Bluetooth.cpp:407–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void unpair(const std::array<uint8_t, 6>& addr) {
408 Device* dev = device_find_first_active_by_type(&BLUETOOTH_TYPE);
409 if (dev != nullptr) {
410 bluetooth_unpair(dev, addr.data());
411 }
412 settings::remove(settings::addrToHex(addr));
413}
414
415void connect(const std::array<uint8_t, 6>& addr, int profileId) {
416 LOGGER.info("connect(profile={})", profileId);

Callers 2

onForgetPeerFunction · 0.50
onResultMethod · 0.50

Calls 4

bluetooth_unpairFunction · 0.85
addrToHexFunction · 0.85
removeFunction · 0.70

Tested by

no test coverage detected