My set up uses both WIFI and mobile connections. Currently i have a setup where mobile is preferred and WIFI is set as fall back. However, I would like to send a command to the teltonika (over ssh) that and do the following, check if a specific SSID is visible... and then connect to that specific SSID, if for some reason it doesn't work go back to mobile. So the script I can see that would fit here is:
start SSH session with Teltonika rut240
swap profiles
wait 1 minute
try to ping google.com
if it fails, swap back, if it succeeds keep it.
what do you guys think, is this possible? Super thankful for any input!