Hi all, I'm not sure I'm posting in the correct area but wasn't sure where to start.
I'll try and keep the background info brief, I'm using a TP-link MR3020 as a local wifi access point into an Ethernet enabled device (PLC) for diagnostic purposes, fault display, error logging and so on using your smartphone as the screen. In this mode there is no internet available.
This TP-link router can be switch using the slider switch to 'guest' mode (WISP) which then connects to a predefined SSID and passphrase, in this mode the router gains internet access from the wifi hotspot (most likely the same smartphone hotspot). The router then initiates an OpenVPN connection back to a server, at this point direct remote access can be gained to the Ethernet device, at which point anything can get be changed or updated as if local to the device, using routing tables and so on.
The above process seems to work ok, BUT with the acceptation that each smartphones SSID and pass must be changed to match the predefined one as stated above. This is a bit of a pain with some smartphones.
What I want to try to implement is a custom Luci page showing only the SSID and passphrase text fields that can be changed to suit the new users phones SSID and pass. These changes would have to be carried out with the router in AP mode, so it would be a different wireless config file than the one that would be running. Also after every reboot the router would return to either AP mode or 'guest' mode (depending on slider) with predefined SSID.
Is it even possible to change a config file that is not currently running? How do you make a custom page with only two text fields and submit button? Also I build my firmware images using ImageGenerator (ImageBuilder) so the custom page might have to be copied from /etc folder to /luci folder, maybe...
Any help would be awesome, the CBI or View (Template) seems to required a different way to compile the firmware other than ImageGenerator, which I'm not familiar with.
Thanks heaps,