Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
456vv committed Nov 29, 2020
1 parent 3440ed7 commit fc6ff2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func main() {
defer task.Close()
// false for multicast, true for broadcast
task.SetBroadcast(false)
// set local network ip, default use is 255.255.255.255
localIP := "192.168.1.2"
if localIP != "" {
task.SetLocalIP(net.ParseIP(localIP))
}
log.Println("SmartConfig run.")
// smartconfig device num: 1
rList := task.ExecuteForResults(1)
Expand Down

0 comments on commit fc6ff2c

Please sign in to comment.