sudo command to reconnect wifi client #1605
-
hi everyone, i have raspap running on a pi 5, i use it as AP for iot devices and have it also connectet to another wifi network with an usb wifi adapter(wlan1) the problem is that after some time the connection to the wifi client is lost. in that case i need to connect to the AP again, go to settings over ui and reconnect again to wifi client. the credentials are known, i only need to press connect, isnt there a sudo command for that? i could program that a command like this is triggered in an intervall to make sure the connection is stable thanks for help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is indeed, it's done with
|
Beta Was this translation helpful? Give feedback.
Brackets
[]
are a standard way of indicating placeholders. Usesudo wpa_cli -i wlan1 select_network 0
instead. See alsoman wpa_cli
.