ESP32 with 2 Wifis

Hello everyone,

What I would like to do is connect my ESP32 as a client to an existing wifi network, read some data from this and then create a second wifi as a server in order to broadcast the data read from the first wifi network. Then my android app can connect to this second network and read the broadcasted data.

The question is, can ESP32 have 2 networks running or do I have to get another ESP32 for the server wifi network and have them communicate via serial?

Here is a diagram of what I would like to accomplish:

ESP32Wifi

Thank you!
Pete

are the client and server connecting to the same WiFi network?
have a look at esp8266-web-server-and-wifi-client-at-the-same-time

Hi horace, thank you for your answer! No I want to keep the 2 networks separate. The app will connect to the second one where it will be only the ESP32 and the phone.

you could

  1. connect to WiFi network 1
  2. run the client and get the data
  3. close connection to network
  4. connect to WiFi network 2 or run an access point
  5. run the server
    etc etc

I think this will introduce delays. It is a solution but I am researching if I could have the functionality described (I added a small diagram).

have a look at setup the ESP32 to work in Soft AP and Station modes simultaneously

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.