File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ bool Wippersnapper_ESP32_nvs::validateNVSConfig() {
45
45
_ssidPass = nvs.getString (" wsNetPass" , " " );
46
46
_aioUser = nvs.getString (" wsAIOUser" , " " );
47
47
_aioPass = nvs.getString (" wsAIOKey" , " " );
48
+ _aioURL = nvs.getString (" wsAIOURL" , " " );
49
+
48
50
// validate config properly set in partition
49
51
if (_ssid == " " || _ssidPass == " " || _aioUser == " " || _aioPass == " " ) {
50
52
// TODO: Possibly LED blink/some external error handling around this
@@ -64,6 +66,7 @@ bool Wippersnapper_ESP32_nvs::setNVSConfig() {
64
66
WS._network_pass = _ssidPass.c_str ();
65
67
WS._username = _aioUser.c_str ();
66
68
WS._key = _aioPass.c_str ();
69
+ WS._mqttBrokerURL = _aioURL.c_str ();
67
70
return true ;
68
71
}
69
72
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ class Wippersnapper_ESP32_nvs {
40
40
String _ssidPass;
41
41
String _aioUser;
42
42
String _aioPass;
43
+ String _aioURL;
43
44
};
44
45
45
46
extern Wippersnapper WS;
You can’t perform that action at this time.
0 commit comments