Skip to content

go-laeo/wpasupplicant

 
 

Repository files navigation

wpasupplicant

build.yaml Go Reference golangci.yaml

Golang interface for talking to wpa_supplicant.

Install

go get github.com/go-laeo/wpasupplicant

Example

// Prints the BSSID (MAC address) and SSID of each access point in range:
w, err := wpasupplicant.Connect(context.Background(), "wlan0")
if err != nil {
	panic(err)
}
for _, bss := range w.ScanResults() {
	fmt.Fprintf("%s\t%s\n", bss.BSSID(), bss.SSID())
}

License

Three-clause BSD. See LICENSE.txt.

Thanks

About

Golang interface for talking to wpa_supplicant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%