Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: DaveShep on February 13, 2019, 09:06:06 PM

Title: Packet sniffing?
Post by: DaveShep on February 13, 2019, 09:06:06 PM
I have several ESP32 devices on a lan of unspecified configuration. They only listen to broadcast packets (255.255.255.255) and do not send out any traffic.

Rather than attempting IP lease by DHCP, or randomly assign a link local address, I would like to consider not assigning an IP at all and just sniff for broadcast packets. This would ensure the devices would work on any lan without configuration.

So, is this possible with the LAN8710A?

And can you point me in the right direction for code, libraries to use or an example. I've not worked at layer 2 before.