Closed sstaub closed 2 years ago
For the Pico W LWIP port, I included the ESP8266 changes to make IPAddress IPv6 compatible. For right now you should be able to edit cores/rp2040/api/IPAddress.h
to make that raw_address()
function public:
. You can also send in a PR, or I'll get one later tonight.
So there are two problems here:
friend ::DNSServer
which #690 reintroducesFor #2, the only fix is to either fix the Ethernet library not to twiddle private fields, or provide a way of downgrading to IPv4 only (I think this will fix, but did not dig much). So I need to think about this. Probably another menu item and 2 libpico.a versions to keep up to date. Will make the lwipopts.h header a lot more involved, too...
I think you should make dedicated IPAddress files for IP6. For an example see https://github.com/Wiznet/Ethernet/tree/DUAL/src they use IP6Address.h and IP6Address.cpp for extensions of the Wiznet W6100 chip.
@sstaub can you give #695 a try and report back? It built the Ethernet class ChatServer example. Make sure you're IPv4 only,of course.
I can test but how to change this line in the platform.ini ?
platform_packages =
framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#2.2.2
I think you could try replacing #2.2.2
with #ipv4ipv6
, I think, but I'm not a P.IO user so take it with a grain of salt...
Ok, I can compile and upload to a WizNet W500 EVB Pico via PIO.
If I include the Ethernet or Ethernet3 library I get a buch of compiler errors. I tried with the Arduino IDE 2 and PlatformIO using following code:
Here the compiler errors from Arduino IDE 2