mirror of
https://github.com/taigrr/golang-wpasupplicant
synced 2025-01-18 04:43:18 -08:00
Fix example in README.md
This commit is contained in:
parent
2928b06b23
commit
84869f0e2c
@ -19,7 +19,10 @@ import (
|
||||
)
|
||||
|
||||
// Prints the BSSID (MAC address) and SSID of each access point in range:
|
||||
w := wpasupplicant.Unixgram("wlan0")
|
||||
w, err := wpasupplicant.Unixgram("wlan0")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
for _, bss := range w.ScanResults() {
|
||||
fmt.Fprintf("%s\t%s\n", bss.BSSID(), bss.SSID())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user