I use Raspberry remotely either by the router wifi and IP 192.168.1.86, or in hotspot with IP 10.42.0.1 as on this
graphic
.
My problem : Currently I switch between the Wifi connection and the hotspot manually if the wifi of the router is available or not.
I would like this to happen automatically if the router is detected, the raspberry connects to the wifi, otherwise it starts the hotspot.
Is this possible, and how?
Thanks
Olivier