minor refactoring of network code

This commit is contained in:
technyon
2023-02-18 19:14:38 +01:00
parent 9e92ea8cb3
commit d0fbaefd77
7 changed files with 18 additions and 13 deletions

View File

@@ -154,6 +154,7 @@ void setup()
{
Serial.begin(115200);
Log = &Serial;
initializeRestartReason();
Log->print(F("NUKI Hub version ")); Log->println(NUKI_HUB_VERSION);
@@ -170,6 +171,7 @@ void setup()
const String mqttLockPath = preferences->getString(preference_mqtt_lock_path);
network = new Network(preferences, mqttLockPath);
network->initialize();
networkLock = new NetworkLock(network, preferences);
networkLock->initialize();