// // // Utility functions // // #include #include "Utility.h" static String macToStr(const uint8_t * mac, char padd = ':'); String GetMacString(char padd) { unsigned char mac[6]; WiFi.macAddress(mac); String clientMac(macToStr(mac, padd)); return clientMac; } static String macToStr(const uint8_t * mac, char padd) { String result; for (int i = 0; i < 6; ++i) { result += String(mac[i], 16); if (i < 5) { if (padd) result += padd; } } return result; } void HexDump(const char * title, const uint8_t * p, int count) { int i; char buf[100] = "0000: "; char asc[17] = " "; if (*title) { printf("%s [@%08X]\n", title, (uint32_t)p); } for (i=0; i