I am trying to program a nodemcu but the code i have requires me to hard code in the ssid and password. Does anyone know how to edit the code so that it does not require hard code. so that i can take this to different networks and somehow using an app or something can select the network to connect to and then enter the password?
If someone has code to help me with this I would greatly appreciate it. Here is the code I have thru the ssid and password
#define WLAN_SSID “ssid” //change to your Wifi SSID
#define WLAN_PASS “password” //change to your Wifi Password
int servoPin = 0; //Servo on GPIO0 or NODEMCU pin D3
const int buttonPin = 12; //manual button on GPIO12 or NODEMCU pin D6
int buttonState = 0;
int direction = 0;