MCPcopy Create free account
hub / github.com/BruceDevices/firmware / addKnownDevice

Method addKnownDevice

src/modules/ble/BLE_Suite.cpp:2068–2075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2066}
2067
2068void AuthBypassEngine::addKnownDevice(const String &name, const String &address, uint8_t linkKey[16]) {
2069 PairedDevice device;
2070 device.name = name;
2071 device.address = address;
2072 memcpy(device.linkKey, linkKey, 16);
2073 device.bondedAt = millis();
2074 knownDevices.push_back(device);
2075}
2076
2077String AuthBypassEngine::getSpoofAddress(const String &targetName) {
2078 for (auto &device : knownDevices) {

Callers

nothing calls this directly

Calls 1

millisFunction · 0.85

Tested by

no test coverage detected