@@ -94,9 +94,9 @@ func main() {
94
94
95
95
// With a brand new instance, the first operation should always be updatating
96
96
// the index.
97
- // log.Println("calling UpdateIndex")
98
- // callUpdateIndex(client, instance)
99
- //
97
+ log .Println ("calling UpdateIndex" )
98
+ callUpdateIndex (client , instance )
99
+
100
100
// Let's search for a platform (also known as 'core') called 'samd'.
101
101
log .Println ("calling PlatformSearch(samd)" )
102
102
callPlatformSearch (client , instance )
@@ -120,17 +120,17 @@ func main() {
120
120
121
121
// Attach a board to a sketch.
122
122
// Uncomment if you do have an actual board connected.
123
- // log.Println("calling BoardAttach(serial:///dev/ttyACM0)")
124
- // callBoardAttach(client, instance)
123
+ //log.Println("calling BoardAttach(serial:///dev/ttyACM0)")
124
+ //callBoardAttach(client, instance)
125
125
126
126
// Compile a sketch
127
- log .Println ("calling Compile(arduino-pippo :samd:mkr1000, VERBOSE, hello.ino)" )
127
+ log .Println ("calling Compile(arduino:samd:mkr1000, VERBOSE, hello.ino)" )
128
128
callCompile (client , instance )
129
129
130
130
// Upload a sketch
131
131
// Uncomment if you do have an actual board connected.
132
- // log.Println("calling Upload(arduino:samd:mkr1000, /dev/ttyACM0, VERBOSE, hello.ino)")
133
- // callUpload(client, instance)
132
+ //log.Println("calling Upload(arduino:samd:mkr1000, /dev/ttyACM0, VERBOSE, hello.ino)")
133
+ //callUpload(client, instance)
134
134
135
135
// Debug a sketch on a board
136
136
// Uncomment if you do have an actual board connected via debug port,
@@ -140,8 +140,8 @@ func main() {
140
140
//if err != nil {
141
141
// log.Fatalf("debug steraming open error: %s\n", err)
142
142
//}
143
- // log.Println("calling Debug(arduino:samd:mkr1000, hello.ino)")
144
- // callDebugger(debugStreamingClient, instance)
143
+ //log.Println("calling Debug(arduino:samd:mkr1000, hello.ino)")
144
+ //callDebugger(debugStreamingClient, instance)
145
145
146
146
// List all boards
147
147
log .Println ("calling BoardListAll(mkr)" )
@@ -489,7 +489,7 @@ func callCompile(client rpc.ArduinoCoreClient, instance *rpc.Instance) {
489
489
compRespStream , err := client .Compile (context .Background (),
490
490
& rpc.CompileReq {
491
491
Instance : instance ,
492
- Fqbn : "arduino-pippo :samd:mkr1000" ,
492
+ Fqbn : "arduino:samd:mkr1000" ,
493
493
SketchPath : filepath .Join (currDir , "hello" ),
494
494
Verbose : true ,
495
495
})
@@ -824,7 +824,7 @@ func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc.
824
824
err := debugStreamingOpenClient .Send (& dbg.DebugReq {
825
825
DebugReq : & dbg.DebugConfigReq {
826
826
Instance : & dbg.Instance {Id : instance .GetId ()},
827
- Fqbn : "arduino-pippo :samd:mkr1000" ,
827
+ Fqbn : "arduino:samd:mkr1000" ,
828
828
SketchPath : filepath .Join (currDir , "hello" ),
829
829
Port : "none" ,
830
830
}})
0 commit comments