My NodeMCU is supposed to connect to different networks.
I'd like to write:
if (ntwrk == 1) {
WIFI_SSID = "thisnetworkSSID";
WIFI_PASS = "thisnetworkpwd";
break;
}
...and so on for the other networks, that are selected by variable ntwrk, in EEPROM.
But this refused because WIFI_SSID must be a constant, if my understanding is correct.
Any mean to solve this (probably basic) programming problem?
Many thanks
JPM