Skip to content

Commit

Permalink
udpate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinpowernz committed Feb 28, 2020
1 parent 92b17c7 commit 7599c38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ From there you can use the client:
```golang
wc, err := wireless.NewClient("wlan0")
defer wc.Close()
```

Get a list of APs that are in range:

// get a list of APs that are in range
```golang
aps, err := wc.Scan()
fmt.Println(aps, err)
```

Get a list of known networks:

// get a list of known networks
```golang
nets, err := wc.Networks()
fmt.Println(nets, err)
```
Expand Down

0 comments on commit 7599c38

Please sign in to comment.