Toggles WiFi on or off.
Usage #
package main
import (
t "github.com/hugmouse/gotermux"
)
func main() {
// Enable WiFi
t.TermuxWifiEnable(true)
// Disable WiFi
t.TermuxWifiEnable(false)
}
Parameters #
on bool
- Set totrue
to enable WiFi,false
to disable