Hello everyone,
I'm using raspberry pi pico and esp01 (esp8266) for rest api with micropython. I programmed esp8266 with Arduino then i used uart for raspberry pi pico.https://create.arduino.cc/projecthub/RO ... ino-011389 i use siimilar method like this.I don't have problem with that.What i want is use raspberry pi pico with ethernet module.Are any of you guys know if i use ethernet module how can i use get or post for rest api.Are there library on micropython for these? I searched it but i didn't find.If you guys know let me know or can i use same method ? Can i code ethernet module from arduino then use uart for raspberry pi pico.Is it possible?
Thank you, have a nice day.
Raspberry pi pico ethernet
Re: Raspberry pi pico ethernet
Hi. I am using a Wiznet 5500 with my ST based board but you could easily connect this to the Pico as well (SPI based). I am using urequests (make sure you get the official version from MP site - there are quite a few) to handle REST API calls.
-
- Posts: 28
- Joined: Sun Aug 08, 2021 5:48 pm
Re: Raspberry pi pico ethernet
I actually couldn't use urequests that's why i try to modify esp8266 from arduino. In thonny ide i tried to install urequest usocket but it didn't worked. I really don't know why but i can't use those modules.
Re: Raspberry pi pico ethernet
You need to ensure you have the correct build of MP to support this. I believe the network build should work by default.
-
- Posts: 28
- Joined: Sun Aug 08, 2021 5:48 pm
Re: Raspberry pi pico ethernet
Code: Select all
help('modules')
__main__ gc uasyncio/funcs uos
_boot machine uasyncio/lock urandom
_onewire math uasyncio/stream ure
_rp2 micropython ubinascii uselect
_thread onewire ucollections ustruct
_uasyncio rp2 uctypes usys
builtins uarray uerrno utime
cmath uasyncio/__init__ uhashlib uzlib
ds18x20 uasyncio/core uio
framebuf uasyncio/event ujson
these are all i got.I couldn't add urequest or usocket or network.I am thinking pico is not supporting those libraries.