PaulStoffregen / teensy41_ethernet

15 stars 12 forks source link

Simplify examples #3

Closed ddrown closed 2 years ago

ddrown commented 4 years ago
  1. switch everything to using DHCP, as it is enabled on most networks
  2. finish moving MAC address configuration into shared lwip code
  3. remove PHY address configuration

Also, I added performance turning notes for the iperf example

PaulStoffregen commented 4 years ago

Long-term, I want to see the same API as the regular (Wiznet 5x00) Arduino Ethernet library. While it's less than optimal in some places, there's a huge advantage if this library and also NativeEthernet use the same API, so programs written for one library can be used with the others by just changing the top include and the class names for clients & server instances.

ddrown commented 4 years ago

That's reasonable, the Arduino Ethernet library simplifies things. Looks like the stm32 group build their compatability layer on top of lwip: https://github.com/stm32duino/STM32Ethernet The Teensy project can take the same direction, have a lwip base and an Arduino Ethernet abstraction on top of it.