If i put my gf-sft1200 into repeater mode, connect to an ssid with it. If I turn repeater mode off and then back on again, will it reconnect to that previous ssid automatically? or do I have to go in and set it back up again.
My goal here is to have the switch on the side turn repeater mode on and off as I need it.
Hi
It seems you’re trying to develop your own toggle button function.
When you enable or disable Repeater using uci, if a Wi-Fi network was previously configured, the router will automatically attempt to reconnect to that same network once Repeater is re-enabled.
Example:
# Disable the Wi-Fi Repeater
uci set repeater.@main[0].disabled='1'
uci commit repeater
/etc/init.d/repeater restart
# Enable the Wi-Fi Repeater
uci set repeater.@main[0].disabled='0'
uci commit repeater
/etc/init.d/repeater restart
After re-enabling, the repeater will reconnect to the previously saved Wi-Fi network, as shown below:
root@GL-SFT1200:~# uci show repeater.@network[0]
repeater.cfg0202af=network
repeater.cfg0202af.ssid='xxxx'
repeater.cfg0202af.key='xxx'
repeater.cfg0202af.proto='dhcp'
repeater.cfg0202af.network='wwan'
repeater.cfg0202af.auto_portal='0'
repeater.cfg0202af.disguise='0'
repeater.cfg0202af.hostname='*'
repeater.cfg0202af.macaddr='r,xxxx'
repeater.cfg0202af.selected='1'