Skip to content

Commit

Permalink
Added BoardList and BoardListAll grpc client examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed May 24, 2019
1 parent f98cd2b commit ecffc26
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions daemon/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,29 @@ func main() {
}
}

// BOARD LIST ALL
fmt.Println("=== calling BoardListAll(mkr)")
boardListAllResp, err := client.BoardListAll(context.Background(), &rpc.BoardListAllReq{
Instance: instance,
SearchArgs: []string{"mkr"},
})
if err != nil {
fmt.Printf("Board list-all error: %s\n", err)
os.Exit(1)
}
fmt.Printf("---> %+v\n", boardListAllResp)
fmt.Println()

// BOARD LIST
fmt.Println("=== calling BoardList()")
boardListResp, err := client.BoardList(context.Background(), &rpc.BoardListReq{Instance: instance})
if err != nil {
fmt.Printf("Board list error: %s\n", err)
os.Exit(1)
}
fmt.Printf("---> %+v\n", boardListResp)
fmt.Println()

// PLATFORM UNINSTALL
fmt.Println("=== calling PlatformUninstall(arduino:samd)")
uninstallRespStream, err := client.PlatformUninstall(context.Background(), &rpc.PlatformUninstallReq{
Expand Down

0 comments on commit ecffc26

Please sign in to comment.