| 59 | } |
| 60 | |
| 61 | void 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 |
| 73 | String ipToString(const uint8_t *ip) { |
no outgoing calls
no test coverage detected