publish wifi rssi

This commit is contained in:
technyon
2022-09-10 10:17:28 +02:00
parent e55ba8007f
commit 6bfc7f686d
9 changed files with 36 additions and 3 deletions

View File

@@ -173,7 +173,8 @@ void setup()
// const NetworkDeviceType networkDevice = NetworkDeviceType::WiFi;
const NetworkDeviceType networkDevice = digitalRead(NETWORK_SELECT) == HIGH ? NetworkDeviceType::WiFi : NetworkDeviceType::W5500;
network = new Network(networkDevice, preferences);
const String mqttLockPath = preferences->getString(preference_mqtt_lock_path);
network = new Network(networkDevice, preferences, mqttLockPath);
network->initialize();
networkLock = new NetworkLock(network, preferences);
networkLock->initialize();