| 2066 | } |
| 2067 | |
| 2068 | void 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 | |
| 2077 | String AuthBypassEngine::getSpoofAddress(const String &targetName) { |
| 2078 | for (auto &device : knownDevices) { |