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

Function buildHandshakePath

src/modules/wifi/sniffer.cpp:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347static bool handshakeFileExists(const String &path) { return handshakeRecordExists(path); }
348
349static String buildHandshakePath(const uint8_t *mac, const char *ssid) {
350 String path = "/BrucePCAP/handshakes/HS_" + macToHex(mac);
351 if (ssid && ssid[0] != '\0') {
352 path += "_";
353 path += ssid;
354 }
355 path += ".pcap";
356 return path;
357}
358
359static bool shouldSaveBeaconForHandshake(const uint8_t *mac) {
360 if (!mac) return false;

Callers 1

saveHandshakeFunction · 0.85

Calls 1

macToHexFunction · 0.85

Tested by

no test coverage detected