Hi,
I want to get the ip address dynamically from my mobile application during the initial installation phase of my device.
For this, the first launch, create a WiFiHotSpot with the esp module, connect to this network from the mobile application and enter the internet ssid and password. save this ssid and the password arduino and do not want it again. You get a reset key in the password changes.
Is it possible to do this?
The problem with installing WiFi systems is the end user buildings is that SSID and password have to be set up.
I use a technique where on power up the serial port is checked for a particular key press, e.g. #
On # setup up mode executes and system parameters are entered, e.g. customer ID, Wifi SSID/password, etc which is then saved to EEPROM
if # is not entered within 10 seconds the program then attempts to connect to WiFi, etc
you have a sketch for esp8266 with esp8266 Arduino core? use WiFiManager library