ArduinoCore-mbed icon indicating copy to clipboard operation
ArduinoCore-mbed copied to clipboard

Inconsistencies between Ethernet libraries of different architectures

Open soosp opened this issue 1 year ago • 4 comments

I'm working on a multi architecture project and foundthat there are inconsistencies of Ethernet libraries for different architectures. E.g.:

  1. Ethernet library for AVR contains Dns.h (with more DNS related functions) while Ehternet for Opta doesn't
  2. Ehternet for AVR doesn't contain hostname related functions (e.g.: Ethternet.setHostName())

It'd be good to synchronize different Arduino architectures at API level, to make it possible to create portable code.

soosp avatar Feb 19 '24 13:02 soosp

It was posted to https://github.com/arduino-libraries/Ethernet/issues/251 also.

soosp avatar Feb 19 '24 13:02 soosp

Ethernet in Mbed doesn't have setHostname, because Mbed networking doesn't support it

JAndrassy avatar Feb 19 '24 15:02 JAndrassy

Sorry, It's my mistake, I has saw it in PlatformIO's framework-arduino-mbed code.

soosp avatar Feb 20 '24 07:02 soosp

I saw it in PlatformIO's framework-arduino-mbed code.

the previous version of Mbed Core had in the header but without an implementation in cpp

JAndrassy avatar Feb 20 '24 07:02 JAndrassy