I am using Arduino UNO and ESP8266 Wifi Module for reading sensor data. I have selected board as "Arduino/Genuino UNO" and using AT command to communicate with ESP8266. My code run very well.
However, how do I avoid hardcoding SSID and Password in my sketch?
I checked WiFi Manager (WiFiManager.h) library but it seems this library is used when ESP8266 is used as primary board. (I used WiFiManager.h and when compiled it asked for "ESP8266WiFi.h". Then I downloaded "SerialESP8266wifi.h" (it seems the "ESP8266WiFi.h" has changed to "SerialESP8266wifi.h"). When compiled, it asked for "ESP8266WebServer.h". After searching online, it seems this ESP8266WebServer.h library is used when using ESP8266 as board (not on a standard Arduino board communicating with an ESP8266 via serial).
Please help. Any way I can make WiFi Manager working when Arduino is selected as primary board?