The linked article describes the problem I’m having: I have a Pi Pico W programmed in C++ using PlatformIO and after a few hours of inactivity, the WiFi disconnects.

The rest of the program on the Pi Pico W continues to run, I can see it outputting debug statements in the serial link via USB.

I can’t use the solution proposed on the linked page because I’m running an http server on the Pi Pico W, intended to receive commands maybe two or three times a day. These are completely asynchronous, so I don’t have a way to know when a command is coming so I can get the WiFi connected again.

Is this a known issue? If so is there a solution that will cause the Pi Pico W to keep the WiFi connection active? I need that server running and listening 24 hours a day, 7 days a week, 365 days a year, irrespective of how little traffic is on it.

  • @henfredemars
    link
    English
    1
    edit-2
    2 months ago

    That’s tough. Do you have Wi-Fi 6 capability? I’ve seen this happen when some devices don’t play nice with the newer Wi-Fi 6 devices.

    Is your regulation zone set correctly? It’s possible if your device is configured for the wrong operating zone, the router might decide to change to a frequency that would have been illegal and so it falls off.