Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 591 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 591 Bytes

wifi

use wifi to get information about connected wireless in go app. Following information is available.

type Info struct {
	SSID        string 
	Mac         string 
	Security    string
	Channel     string
	Frequency   string
	SignalLevel string
	MaxRate     string
}

Install

go get github.com/asiyani/wifi

Example

	out, err := wifi.GetInfo()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", out)

	//output:-
	//{SSID:5GHz-wifi Mac:44:44:44:44:44:44 Security:wpa2-psk Channel:44,1 Frequency:5220 SignalLevel:-70 MaxRate:300}

Licence

MIT