FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
219 views 0 comments
by anonymous

I have a project where I turn the WiFi on and off by switching the state of the digital input.

I would like to know if the custom scripts can run all the time checking if WiFi is active or not to activate the digital output. It would be something as easy as this:

- If WiFi is activated, activate the digital output. 

- If WiFi is disabled, disable digital output.

1 Answer

0 votes
by anonymous
Hi,

You can write a scheduling task that would check if your WiFi is some kind of state and then execute your specific command on successful check:

https://openwrt.org/docs/guide-user/base-system/cron

EB.