Making a GET-request with Wiznet Ethernet Hat #14112
Unanswered
LavaCode
asked this question in
RP2040 / Pico
Replies: 1 comment 9 replies
-
I cannot recall in which situation, but I had issues with calling nic.ifconfig() before nic.active(). So you could try to remove the one before nic.active(). |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a Raspberry Pi Pico with the Wiznet ethernet hat and trying to make very basic HTTP-request to a connected computer.
The computer is running Madrix Software ("regular" software application) which has a webserver to be controlled remotely.
IP Config:
Server (Madrix): 10.0.0.3 port 80
Client (Pico/Wiznet): 10.0.0.2
The server and client are directly connected - 15cm LAN cable.
All this works fine, but I can't get the Wiznet board working..
Due to a direct connection to the server I want to have the board to have a static IP.
Which is more reliable.
So loading this script (which executes a single request, for now) will give me an error.
I get this error:
Clearly it's waiting for DHCP, but it will never get an DHCP-IP.
Also, if I connect my board to my router instead I (and allowing the script to accept DHCP) also get's an error:
I've read this has to do with file access?
My aim is to not use DHCP since I want to be able to run the configuration even without any router or network. Just an interface connected to a local PC for operation.
I'm able to make a request if I use Postman or by loading the endpoint in my browser.
There is no authentication or anything; you just need to have connect between each other.
What am I doing wrong here?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions