@@ -36,8 +36,8 @@ type Client interface {
3636 DeviceTagsCreate (id string , tags map [string ]string ) error
3737 DeviceTagsDelete (id string , keys []string ) error
3838 CertificateCreate (id , csr string ) (* iotclient.ArduinoCompressedv2 , error )
39- ThingCreate (thing * iotclient.Thing , force bool ) (* iotclient.ArduinoThing , error )
40- ThingUpdate (id string , thing * iotclient.Thing , force bool ) error
39+ ThingCreate (thing * iotclient.ThingCreate , force bool ) (* iotclient.ArduinoThing , error )
40+ ThingUpdate (id string , thing * iotclient.ThingUpdate , force bool ) error
4141 ThingDelete (id string ) error
4242 ThingShow (id string ) (* iotclient.ArduinoThing , error )
4343 ThingList (ids []string , device * string , props bool , tags map [string ]string ) ([]iotclient.ArduinoThing , error )
@@ -185,7 +185,7 @@ func (cl *client) CertificateCreate(id, csr string) (*iotclient.ArduinoCompresse
185185}
186186
187187// ThingCreate adds a new thing on Arduino IoT Cloud.
188- func (cl * client ) ThingCreate (thing * iotclient.Thing , force bool ) (* iotclient.ArduinoThing , error ) {
188+ func (cl * client ) ThingCreate (thing * iotclient.ThingCreate , force bool ) (* iotclient.ArduinoThing , error ) {
189189 opt := & iotclient.ThingsV2CreateOpts {Force : optional .NewBool (force )}
190190 newThing , _ , err := cl .api .ThingsV2Api .ThingsV2Create (cl .ctx , * thing , opt )
191191 if err != nil {
@@ -195,7 +195,7 @@ func (cl *client) ThingCreate(thing *iotclient.Thing, force bool) (*iotclient.Ar
195195}
196196
197197// ThingUpdate updates a thing on Arduino IoT Cloud.
198- func (cl * client ) ThingUpdate (id string , thing * iotclient.Thing , force bool ) error {
198+ func (cl * client ) ThingUpdate (id string , thing * iotclient.ThingUpdate , force bool ) error {
199199 opt := & iotclient.ThingsV2UpdateOpts {Force : optional .NewBool (force )}
200200 _ , _ , err := cl .api .ThingsV2Api .ThingsV2Update (cl .ctx , id , * thing , opt )
201201 if err != nil {
0 commit comments