I have a few questions on what to do next.
1. I am using lua. There are 2 files, the init.lua and another file that does the data logging part.
First I am wondering if it would be a good or bad idea to use Visual Studio, since that is my dev platform of choice (currently used ESPlorer). If so I assume I would need to dump LUA and use C++ but I am not clear on that- what I would need to do to use Visual Studio (with Visual Micro I assume)
2. Whether I use VS or continue to use LUA/ESPlorer, I have my wifi user/pass hard coded.
I am not sure the best approach to allow the end user of the device to change that to use their own wifi connection. Do I need to write my own app that would allow the user to plug in to USB and select a connection and my app would re-flash the ESP?
Edited:
After thinking about #2, I was thinking that since ESPlorer shows the commands used to send a file to the device in the right side window, Maybe I merely need to replicate the same commands and send it from my custom app thru the USB port to the device. I would also need to figure out how to save the settings (like user/pass) in a file and read them back
My app would do the following:
1. Send a command to the device to get a list of WIFI connections
2. Display them for the user to select one
3. Allow the user to enter a password
4. Read the settings file from the ESC, add the new settings and flash back to the device.
I was also thinking I could instead of using a custom program do this:
Set the device mode to both. The user would connect a computer's (or phone) wireless to the device generated hotspot. The device would display a GUI to display the hotspots, allow selecting one and entering a pass and then saving the settings to the device.
Comments?