When my headerless #RaspberryPi where outside with poor wifi I kept them going with my autohotspot script. Auto switching between an AccessPoint and Wifi network so I always had a connection. It doesn't work in #PiOS Bookworm. So, a new Bookworm version is now available AccessPopup. https://www.raspberryconnect.com/projects/65-raspberrypi-hotspot-accesspoints/203-automated-switching-accesspoint-wifi-network
Raspberry Connect - Automated Switching - Access Point or WiFi Network

Activate an easy Automated WiFi AccessPoint or connect to a local WiFi Network for Raspberry Pi OS Bookworm. The AP is automatically created when you are out.