Closed sdrshnptl closed 1 year ago
Sorry, this is a library issue and not related to the core. You're using a 3rd party Ethernet, HTTPClient, and WebServer. Not the core's versions of them AFAICT from your logs. I suggest paring things down to a single 3rd party lib at a time, and if those fail opening bugs in the appropriate repo. Good luck!
PIO + regular Ethernet library is definitely possible, we discussed that in https://github.com/earlephilhower/arduino-pico/discussions/1169 with e.g. the sketch https://gist.github.com/maxgerhardt/a33206a8e76ee6c0b66d574c4a1ad1e8.
So https://github.com/arduino-libraries/Ethernet/blob/master/examples/WebServer/WebServer.ino should work too with a Ethernet.init(17); // WIZnet W5100S-EVB-Pico W5500-EVB-Pico
adjustment.
C:\Users\sdrshnptl.platformio\packages\framework-arduinopico\libraries\HTTPClient\src\base64.cpp:42:23: error: 'base64_encode_expected_len_nonewlines' was not declared in this scope; did you mean 'base64_encode_expected_len'? 42 | : base64_encode_expected_len_nonewlines(length)) + 1);
Just a heads up on why that error is happening: The EthernetWebServer also has src/libb64/base64.h
which interferes with the base64.h found in this core, so that's a game-over.
I've corrected the library and uploaded a minimally compiling project.
https://github.com/maxgerhardt/pio-wiznet_5500_evb_pico-webserver
I also corrected the platformio.ini
to board = wiznet_5500_evb_pico
, because why use pico
when we have dedicated board definitions for it?
Does it work during runtime? I don't know, I don't have that board.
I also corrected the
platformio.ini
toboard = wiznet_5500_evb_pico
, because why usepico
when we have dedicated board definitions for it?
i should have used this correctly. Thanks @maxgerhardt !
I'm trying to compile Ethernet example for w5500-evb-pico on win10 with following platformio.ini Any idea why this happening?