1

I've just created a WiFi AP on my RPi 3. I'd like to use it with my DSLR, so I don't need network if I want to do some timelapse. Now that works great, but I would like to use mainly "the normal way" my WiFi. Can I wrote a script or so (sorry I am quite new to linux) to turn it ON or OFF?

Please let me know if you need further information. Thanks!

  • you could use wait [FOR CERTAIN SECONDS OR HOURS] and ifconfig wlan0 down to switch off wifi after the wait period is over or use crontab to trigger the same command at every hour, minute of the day as per your wish.. – Shan-Desai Mar 14 '16 at 12:05
  • 1
    I meant I want to have a "switch" to switch between AP and normal WiFi usage. – schoeberlt Mar 14 '16 at 15:43
1

Not sure whether this works for your requirements, but what I do to turn my Access Point off is:

sudo systemctl stop hostapd

This turns the AP off and makes it available for normal WLAN usage. To turn it on again just start the hostapd daemon again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.