generate random mac address on first start

This commit is contained in:
technyon
2022-04-29 21:56:19 +02:00
parent 6bd6900198
commit 6fe1d70521
4 changed files with 60 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ void Network::setupDevice(const NetworkDeviceType hardware)
{
case NetworkDeviceType::W5500:
Serial.println(F("Network device: W5500"));
_device = new W5500Device(_hostname);
_device = new W5500Device(_hostname, _preferences);
break;
case NetworkDeviceType::WiFi:
Serial.println(F("Network device: Builtin WiFi"));