We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcf531 commit 6555b10Copy full SHA for 6555b10
daemon/client/client.go
@@ -11,7 +11,7 @@ import (
11
)
12
13
func main() {
14
- if len(os.Args) != 2 {
+ if len(os.Args) != 3 {
15
fmt.Println("Please specify Arduino DATA_DIR as first argument")
16
os.Exit(1)
17
}
@@ -50,6 +50,17 @@ func main() {
50
fmt.Println("Board name: ", details.GetName())
51
52
53
+ compResp, err := client.Compile(context.Background(), &rpc.CompileReq{
54
+ Instance: instance,
55
+ Fqbn: "arduino:samd:mkr1000",
56
+ SketchPath: os.Args[2],
57
+ })
58
+
59
+ if err != nil {
60
+ fmt.Println(compResp.GetResult().Message, err)
61
+ os.Exit(1)
62
+ }
63
64
destroyResp, err := client.Destroy(context.Background(), &rpc.DestroyReq{
65
Instance: instance,
66
})
0 commit comments