File tree 9 files changed +11
-11
lines changed
9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ func (r createResult) Data() interface{} {
80
80
81
81
func (r createResult ) String () string {
82
82
return fmt .Sprintf (
83
- "name: %s\n id: %s\n board: %s\n serial-number : %s\n fqbn: %s" ,
83
+ "name: %s\n id: %s\n board: %s\n serial_number : %s\n fqbn: %s" ,
84
84
r .device .Name ,
85
85
r .device .ID ,
86
86
r .device .Board ,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func (r createGenericResult) Data() interface{} {
73
73
74
74
func (r createGenericResult ) String () string {
75
75
return fmt .Sprintf (
76
- "id: %s\n secret-key : %s\n name: %s\n board: %s\n serial-number : %s\n fqbn: %s" ,
76
+ "id: %s\n secret_key : %s\n name: %s\n board: %s\n serial_number : %s\n fqbn: %s" ,
77
77
r .device .ID ,
78
78
r .device .Password ,
79
79
r .device .Name ,
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ func (r createLoraResult) Data() interface{} {
87
87
88
88
func (r createLoraResult ) String () string {
89
89
return fmt .Sprintf (
90
- "name: %s\n id: %s\n board: %s\n serial-number : %s\n fqbn: %s" +
91
- "\n app-eui : %s\n app-key : %s\n eui: %s" ,
90
+ "name: %s\n id: %s\n board: %s\n serial_number : %s\n fqbn: %s" +
91
+ "\n app_eui : %s\n app_key : %s\n eui: %s" ,
92
92
r .device .Name ,
93
93
r .device .ID ,
94
94
r .device .Board ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func (r cloneResult) Data() interface{} {
75
75
76
76
func (r cloneResult ) String () string {
77
77
return fmt .Sprintf (
78
- "name: %s\n id: %s\n device-id : %s\n variables: %s" ,
78
+ "name: %s\n id: %s\n device_id : %s\n variables: %s" ,
79
79
r .thing .Name ,
80
80
r .thing .ID ,
81
81
r .thing .DeviceID ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ func (r createResult) Data() interface{} {
82
82
83
83
func (r createResult ) String () string {
84
84
return fmt .Sprintf (
85
- "name: %s\n id: %s\n device-id : %s\n variables: %s" ,
85
+ "name: %s\n id: %s\n device_id : %s\n variables: %s" ,
86
86
r .thing .Name ,
87
87
r .thing .ID ,
88
88
r .thing .DeviceID ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type CreateGenericParams struct {
39
39
// parameters of a generic Arduino IoT Cloud device.
40
40
type DeviceGenericInfo struct {
41
41
DeviceInfo
42
- Password string `json:"secret-key "`
42
+ Password string `json:"secret_key "`
43
43
}
44
44
45
45
// CreateGeneric command is used to add a new generic device to Arduino IoT Cloud.
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ const (
48
48
// parameters of an Arduino IoT Cloud LoRa device.
49
49
type DeviceLoraInfo struct {
50
50
DeviceInfo
51
- AppEUI string `json:"app-eui "`
52
- AppKey string `json:"app-key "`
51
+ AppEUI string `json:"app_eui "`
52
+ AppKey string `json:"app_key "`
53
53
EUI string `json:"eui"`
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type DeviceInfo struct {
28
28
Name string `json:"name"`
29
29
ID string `json:"id"`
30
30
Board string `json:"board"`
31
- Serial string `json:"serial-number "`
31
+ Serial string `json:"serial_number "`
32
32
FQBN string `json:"fqbn"`
33
33
Tags []string `json:"tags,omitempty"`
34
34
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
type ThingInfo struct {
28
28
Name string `json:"name"`
29
29
ID string `json:"id"`
30
- DeviceID string `json:"device-id "`
30
+ DeviceID string `json:"device_id "`
31
31
Variables []string `json:"variables"`
32
32
Tags []string `json:"tags,omitempty"`
33
33
}
You can’t perform that action at this time.
0 commit comments