Pico W: Wi-Fi connection issue with conflicting IP addresses #16501
Unanswered
max99233
asked this question in
RP2040 / Pico
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm having trouble connecting two Raspberry Pi Pico W devices to the same Wi-Fi network.
I've searched in the web for similiar issue, and seems many have this issue, but didn't find any solution for my particular case.
While the first Pico gets a correct IP address (e.g., 192.168.1.50) and can be pinged and accessed on port 80, the second one gets an IP in a different subnet (e.g., 192.168.4.15) and is unreachable and unpingable.
I've tried different routers (Fritzbox 5530, Netgear, and even my phone's hotspot), but the issue persists.
As a workaround, I've implemented a function to manually set a static IP address, but this is not ideal for end-users who may not be familiar with network configurations.
The Wi-Fi connection code is external to the main loop and is called asynchronously to allow for simultaneous network data retrieval (via HTML page) and fan control.
Does anyone have any suggestions or insights into what might be causing this behavior?
I'm using the version 1.22.2 of Micropython:
here's a little part of code for the connection part:
try:
Sorry for not snippet my code, having some issue with formatting and making readable.
many print for using in a debug terminal with wrepl, imported in the main.
I'm a newbie in coding
Beta Was this translation helpful? Give feedback.
All reactions