Expand MQTT broker to 128 bytes

This commit is contained in:
aderusha 2021-11-15 16:23:30 -05:00
parent efd785a458
commit dc3a50546c
3 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@
// These defaults may be overwritten with values saved by the web interface // These defaults may be overwritten with values saved by the web interface
char wifiSSID[32] = ""; char wifiSSID[32] = "";
char wifiPass[64] = ""; char wifiPass[64] = "";
char mqttServer[64] = ""; char mqttServer[128] = "";
char mqttPort[6] = "1883"; char mqttPort[6] = "1883";
char mqttUser[128] = ""; char mqttUser[128] = "";
char mqttPassword[128] = ""; char mqttPassword[128] = "";
@ -2378,9 +2378,10 @@ void configSave()
{ {
serializeJson(jsonConfigValues, configFile); serializeJson(jsonConfigValues, configFile);
configFile.println(""); configFile.println("");
yield(); configFile.flush();
configFile.close(); configFile.close();
} }
yield();
debugPrintFile("/config.json"); debugPrintFile("/config.json");
shouldSaveConfig = false; shouldSaveConfig = false;
} }