wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
74 stars 17 forks source link

ESP32 Soft Access Point #304

Open sjamesparsonsjr opened 2 years ago

sjamesparsonsjr commented 2 years ago

I have ESP32 acting as an access point that serves a page to fill in the network SSID and password before connecting to the Local server. Does wokwi support WiFi.softAP(ssid, password)? I'm able to get WiFi.begin working.

urish commented 2 years ago

I did a quick test: https://wokwi.com/arduino/projects/322888460129010260

It turns out you can configure the ESP32 as AP, and it works - but not very useful at the moment.

The way you can see it works: if you start the AP and then download a packet capture file, and you can see the beacons from the new AP (together with the standard Wokwi-GUEST beacons):

image

So the AP is running. However, the simulator does not know how to connect to it, so it's not very useful at the moment.

The challenge in making it work is implementing a WiFi station: we need to be able to associate, get an IP address from the DHCP server, and then forward the traffic from your web browser down to the ESP32 network running in the simulation.

I opened this request for voting, let's see how this goes!