Major update/rewrite/recombine to get SSDP, and GrowController UI and application shell.

This commit is contained in:
David
2021-10-25 23:46:03 +00:00
parent c47c37a891
commit 4597350845
52 changed files with 4981 additions and 4990 deletions

29
Firmware/Utility.cpp Normal file
View File

@@ -0,0 +1,29 @@
//
//
// Utility functions
//
//
#include <ESP8266WiFi.h>
#include "Utility.h"
static String macToStr(const uint8_t * mac);
String GetMacString() {
unsigned char mac[6];
WiFi.macAddress(mac);
String clientMac(macToStr(mac));
return clientMac;
}
String macToStr(const uint8_t * mac) {
String result;
for (int i = 0; i < 6; ++i) {
result += String(mac[i], 16);
if (i < 5)
result += ':';
}
return result;
}