File tree Expand file tree Collapse file tree 9 files changed +11
-11
lines changed
Expand file tree Collapse file tree 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{} {
8080
8181func (r createResult ) String () string {
8282 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" ,
8484 r .device .Name ,
8585 r .device .ID ,
8686 r .device .Board ,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func (r createGenericResult) Data() interface{} {
7373
7474func (r createGenericResult ) String () string {
7575 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" ,
7777 r .device .ID ,
7878 r .device .Password ,
7979 r .device .Name ,
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ func (r createLoraResult) Data() interface{} {
8787
8888func (r createLoraResult ) String () string {
8989 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" ,
9292 r .device .Name ,
9393 r .device .ID ,
9494 r .device .Board ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func (r cloneResult) Data() interface{} {
7575
7676func (r cloneResult ) String () string {
7777 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" ,
7979 r .thing .Name ,
8080 r .thing .ID ,
8181 r .thing .DeviceID ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ func (r createResult) Data() interface{} {
8282
8383func (r createResult ) String () string {
8484 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" ,
8686 r .thing .Name ,
8787 r .thing .ID ,
8888 r .thing .DeviceID ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type CreateGenericParams struct {
3939// parameters of a generic Arduino IoT Cloud device.
4040type DeviceGenericInfo struct {
4141 DeviceInfo
42- Password string `json:"secret-key "`
42+ Password string `json:"secret_key "`
4343}
4444
4545// 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 (
4848// parameters of an Arduino IoT Cloud LoRa device.
4949type DeviceLoraInfo struct {
5050 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 "`
5353 EUI string `json:"eui"`
5454}
5555
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type DeviceInfo struct {
2828 Name string `json:"name"`
2929 ID string `json:"id"`
3030 Board string `json:"board"`
31- Serial string `json:"serial-number "`
31+ Serial string `json:"serial_number "`
3232 FQBN string `json:"fqbn"`
3333 Tags []string `json:"tags,omitempty"`
3434}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
2727type ThingInfo struct {
2828 Name string `json:"name"`
2929 ID string `json:"id"`
30- DeviceID string `json:"device-id "`
30+ DeviceID string `json:"device_id "`
3131 Variables []string `json:"variables"`
3232 Tags []string `json:"tags,omitempty"`
3333}
You can’t perform that action at this time.
0 commit comments