mirror of
https://github.com/taigrr/golang-wpasupplicant
synced 2026-03-20 21:52:20 -07:00
Fix example in README.md
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user