Open aforren1 opened 3 years ago
Disable/enable bluetooth & wifi programmatically.
For Linux, nmcli or rfkill? https://unix.stackexchange.com/questions/65719/equivalent-command-line-call-for-airplane-mode, https://www.kernel.org/doc/html/latest/driver-api/rfkill.html
nmcli
rfkill
For Windows, https://stackoverflow.com/questions/17331449/disabling-enabling-network-interfaces-via-winapi? https://stackoverflow.com/questions/37734995/how-to-turn-wireless-radio-on-off-in-windows? https://docs.microsoft.com/en-us/previous-versions/windows/hardware/radio/hh406627(v=vs.85)?
For Mac, https://stackoverflow.com/questions/27833109/enable-disable-bluetooth-programmatically-using-corebluetooth?
Here's the source for the rfkill command line: https://kernel.googlesource.com/pub/scm/linux/kernel/git/jberg/rfkill/+/v0.1/rfkill.c
Disable/enable bluetooth & wifi programmatically.
For Linux,
nmcli
orrfkill
? https://unix.stackexchange.com/questions/65719/equivalent-command-line-call-for-airplane-mode, https://www.kernel.org/doc/html/latest/driver-api/rfkill.htmlFor Windows, https://stackoverflow.com/questions/17331449/disabling-enabling-network-interfaces-via-winapi? https://stackoverflow.com/questions/37734995/how-to-turn-wireless-radio-on-off-in-windows? https://docs.microsoft.com/en-us/previous-versions/windows/hardware/radio/hh406627(v=vs.85)?
For Mac, https://stackoverflow.com/questions/27833109/enable-disable-bluetooth-programmatically-using-corebluetooth?