If I send a typical ESP project to a friend what is the easiest way for the device to be introduced to their Wifi network and then for the users to reliably find the server page of the device on their local network ?
Assume plugging a PC into the USB port is not available – so we can have the device host its own wifi first, the user sign onto this and sets the SSID and password, but can we also fix the IP for the ESP device then ? or set a hostname that can be used locally to find the device ?
We can’t assume what the friends Wifi network IP address range is available – they need to be able to configure this easily , What is the best way to acheive this ?
Steve, That is a good suggestion. I have installed Autoconnect library now and run examples OK, but I want to use this in a project with websockets based on Rui’s examples using Asyncwebserver library, and Auto connect does not seem to work with it – do you have experience of this and a workaround ?
I’m afraid I don’t. You may need to dissect one of the libraries to see how it works and then incorporate that into your project.
I see that you have access to our new course “Build Web Servers”.
The 2nd Edition comes with a project to build your own WiFi Manager. So, it allows you to introduce the network credentials with the ESP32 in access point mode. Then, it connects to the network in station mode.
I think it is exactly what you are looking for. It is Unit 4.3.
I hope this helps with your project.