I am creating a network of ESP32 devices that set up access points with name, i.e., "something-network", and connect to another network with the same name.
I tried to configure both STA_IF and AP_IF modes. However, the IP address of STA node and the IP address of AP gateway are in conflict. Furthermore, I tried to redefine the subnet of access points, but devices see each other with a cluster of star topologies. My intent is instead to create a network as closely as possible to mesh topology.
I thought to use access point only, but my idea seems to have issues.
I would like to know if the configuration of an ESP32 in the access point WLAN mode brings also the opportunity to establish a connection.
Look at the snippet below:
Code: Select all
nic = network.WLAN(network.AP_IF)
nic.active(True)
ssid, passwd = 'something-network', 'secret-password'
nic.config(essid=ssid,password=passwd,authmode=3,hidden=False)
nic.conect(ssid,passwd)
Code: Select all
OSError: Wifi Invalid Mode