Setting static ip on raspberry pi pico W

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
Nardo
Posts: 2
Joined: Sat Jul 16, 2022 10:02 pm

Setting static ip on raspberry pi pico W

Post by Nardo » Fri Jul 22, 2022 6:48 pm

Hello,
How to use a static ip on raspberry pi pico W ... any help, thank you

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Setting static ip on raspberry pi pico W

Post by davef » Fri Jul 22, 2022 7:01 pm

On the ESP32:

Code: Select all

 
sta_if.active(True)
sta_if.ifconfig((your_static_IP, '255.255.255.0', your gateway, '8.8.8.8'))

then connect

Nardo
Posts: 2
Joined: Sat Jul 16, 2022 10:02 pm

Re: Setting static ip on raspberry pi pico W

Post by Nardo » Sat Jul 23, 2022 3:01 pm

Thank you :)

Post Reply