espressif / esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.
164 stars 54 forks source link

DHCP server on USB interface (AEGHB-112) #40

Closed redfast00 closed 1 year ago

redfast00 commented 1 year ago

Right now, when the USB bridge feature is used, you need to manually assign an IP address to the device the ESP32 is plugged into: for example, if it is plugged into my laptop, I need to manually assign it 192.168.5.3. When I connect to the softap bridge network that is set up by the ESP32, I do get automatically assigned an IP address. Is it possible to also run a DHCP server on the USB interface?

Alternatively, in the case of using esp-mesh-lite, it would be nice if the USB interface appeared to be directly connected to the network the root node is connected to, so it could negotiate it's own ip address.

tswen commented 1 year ago

Hi, You need to use IDF 5.0 version, as version 4.4 does not support multiple DHCPS.

redfast00 commented 1 year ago

Okay, thank you for the fast answer, will try that next.