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

Function stringToMAC

src/core/net_utils.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void stringToMAC(const std::string &macStr, uint8_t MAC[6]) {
62 std::stringstream ss(macStr);
63 unsigned int temp;
64 for (int i = 0; i < 6; ++i) {
65 char delimiter;
66 ss >> std::hex >> temp;
67 MAC[i] = static_cast<uint8_t>(temp);
68 ss >> delimiter;
69 }
70}
71
72// Função para converter IP para string
73String ipToString(const uint8_t *ip) {

Callers 2

stationDeauthFunction · 0.85
setupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected