Remove stuff that came from a different app when this was derived.

Prepare to add DNSServer for captive portal.
This commit is contained in:
David
2021-11-02 14:46:37 +00:00
parent 4597350845
commit a0825b629e
10 changed files with 602 additions and 208 deletions

View File

@@ -3,9 +3,33 @@
// Utility.h
//
//
#ifndef UTILITY_H
#define UTILITY_H
#include <ESP8266WiFi.h>
// Returns the MAC Address as a string object
String GetMacString();
String GetMacString(char padd = ':');
// Dump a block of memory as a hex title-named listing
//
void HexDump(const char * title, const uint8_t * p, int count);
// A macro to generate a build error on the condition
//
// Example:
// BUILD_BUG_ON(sizeof(something) > limit);
//
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
// And the more positive direction
//
// Example:
// COMPILER_ASSERT(sizeof(something) <= limit);
//
#define COMPILER_ASSERT(condition) ((void)sizeof(char[-!(condition)]))
#endif // UTILITY_H