Wifi name set to const

This commit is contained in:
Kai Lauterbach 2022-09-08 11:36:58 +02:00
parent 0b9b627b6b
commit 26300287f9

View file

@ -159,7 +159,7 @@ void wifiConnectionCheck()
#ifdef USE_WIFIMANAGER #ifdef USE_WIFIMANAGER
// Establish WiFi connection // Establish WiFi connection
String wifiName = "oko-weather-" + DEVICE_NAME; const String wifiName = "oko-weather-" + DEVICE_NAME;
wifiManager.setMinimumSignalQuality(WIFI_MINIMUM_SIGNAL_QUALITY); wifiManager.setMinimumSignalQuality(WIFI_MINIMUM_SIGNAL_QUALITY);
// the time in seconds to wait for the known wifi connection // the time in seconds to wait for the known wifi connection
@ -356,7 +356,6 @@ void _loop()
delay(100); delay(100);
#ifdef INFLUXDB_FEATURE #ifdef INFLUXDB_FEATURE
for (uint8_t i = 0; i < 5 and validData == false; i++) for (uint8_t i = 0; i < 5 and validData == false; i++)
{ {
if (currentSensorData[i] != 0) if (currentSensorData[i] != 0)