I have followed your work and I think is really nice, thanks for sharing it, well now after testing the CHERTS guide to compile on windows and since I wasnt able to compile the webpages.espfs there, now I have the enviromnet on ubuntu and all is working good, I have done some changes in the htmls and now Im running the server-client app. I have one ESP running as server where I can see in a table the IP, the label of the device(no yet finished) and a button to switch on/off things as starting point, so I have something like this on the server:
IP-------------------Device Label --------------Switch
192.168.4.101---Whatever1------------------Button "ON/OFF"
(Any device connected to the ESP running as server will be listed here using wifi_softap_get_station_info())
The idea was to send an http request when the button is clicked using your ajax code in the next way: (actually I can see the request, but theres no response)
xhr.open("GET", "http://"+deviceIP+"/wifi/setligth.cgi");// the URL was added, also the cgi function linked to the URL
But it seems that the ESP playing the server role cant reach the server part of the ESP connected as the CLIENT, I thought that avoiding to get the module in STA-only mode on resetTimerCb function will allow me to call the function of the http request, but is not working .
So, the question is if the httpd project will be able to enable that bi-directional comunication between ESPs acting as CLIENT and SERVER at the same time? Any thought about how I can accomplish that? That means I have to get connected from the SERVER to esp acting as CLIENT to run some functions there(I mean with SSID and pass...)?