ESP32 Mesh with another ESP32 set as AP (no router)

ESP32Newbie
Posts: 2
Joined: Sun Jul 28, 2019 11:54 am

ESP32 Mesh with another ESP32 set as AP (no router)

Postby ESP32Newbie » Sun Jul 28, 2019 12:03 pm

Let me paint a picture:

I have 1 unit set to AP mode and subsequent units are set to ROOT (if this can be set using an application?) can the ESP32 root find and connect to the ESP32 AP? In a sense:


Person ---> (ESP32 AP) -----> (ESP32 ROOT) -----> (Regular ESP32 MESH)

Where (Unit) can be set from AP to (ROOT / ESP32 MESH) using an application. Therefore giving the user the ability to "Join" a mesh network using 1 unit as its point of access?

The application would assign the proper SSID and PW to each (ESP32 ROOT/MESH) unit corresponding to the (ESP32 AP)

Thanks in advance.

it_zzc
Posts: 40
Joined: Mon Apr 15, 2019 1:37 pm

Re: ESP32 Mesh with another ESP32 set as AP (no router)

Postby it_zzc » Mon Jul 29, 2019 2:57 am

ESP32 runs as an AP:https://github.com/espressif/esp-idf/tr ... ted/softAP
ESP-MESH networking connection operation:https://github.com/espressif/esp-mdf/tr ... ifi/router
At present, this scheme has proved feasible, and can refer to: https://github.com/espressif/esp-mdf/issues/71

NOTE:

Because our ESP-MDF uses the 192.168.4.1 network segment by default, if softap also uses this network segment, there will be conflicts. Please modify the softap network segment as follows:
Image

Code: Select all

    tcpip_adapter_ip_info_t ip_info = {
        .ip.addr      = ipaddr_addr("192.168.1.1"),
        .netmask.addr = ipaddr_addr("255.255.255.0"),
        .gw.addr      = ipaddr_addr("192.168.1.1"),
    };

    tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_AP);
    tcpip_adapter_set_ip_info(TCPIP_ADAPTER_IF_AP, &ip_info);
    tcpip_adapter_dhcps_start(TCPIP_ADAPTER_IF_AP);

ESP32Newbie
Posts: 2
Joined: Sun Jul 28, 2019 11:54 am

Re: ESP32 Mesh with another ESP32 set as AP (no router)

Postby ESP32Newbie » Mon Jul 29, 2019 6:58 am

Will give this a shot.

Thank you for the quick and amazing support guys.

Who is online

Users browsing this forum: No registered users and 2 guests