Hello,
There is no direct way to realize this via WebUI, however, lt could be achievable using a script and placing it in /etc/rc.local file or in a System -> Custom scripts section in web interface.
An example script is below:
#!/bin/ash
while [ 1 ]; do
sleep 300
ping 8.8.8.8 -s 0 -c 3 -q >/dev/null
ret=$?
if [ $ret -ne 0 ]; then
ubus call ioman.gpio.dout1 update '{"value":"1"}'
else
ubus call ioman.gpio.dout1 update '{"value":"0"}'
fi
done
The idea above is that router checks mobile connectivity by pinging google DNS three times every 5 minutes and, based on the results, either sets the digital output to high or low.
Best regards,