Browse Source

cmd/mconnect-discover: adjust to changes in discovery

bboozzoo/golang
Maciek Borzecki 7 years ago
parent
commit
26580713f0
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      cmd/mconnect-discover/main.go

+ 8
- 1
cmd/mconnect-discover/main.go View File

@ -38,6 +38,13 @@ func main() {
for {
log.Printf("receive wait")
l.Receive(ctx)
d, err := l.Receive(ctx)
if err != nil {
log.Warning("failed to receive identity packet: %v", err)
continue
}
log.Infof("discovered a device at %s packet: %v",
d.From, d.Identity)
}
}

Loading…
Cancel
Save