diff --git a/iota-types.go b/iota-types.go index 4590273..5aeaf2b 100644 --- a/iota-types.go +++ b/iota-types.go @@ -60,6 +60,7 @@ type StaticAttribute struct { ObjectID string `json:"object_id,omitempty" formam:"object_id"` Name string `json:"name" formam:"name"` Type string `json:"type" formam:"type"` + Value any `json:"value" formam:"value"` Metadata map[string]Metadata `json:"metadata,omitempty" formam:"metadata"` } diff --git a/main_test.go b/main_test.go index 645568f..1dbf3a4 100644 --- a/main_test.go +++ b/main_test.go @@ -44,6 +44,12 @@ func TestMain(m *testing.M) { Apikey: apiKey, EntityType: "Test", Autoprovision: false, + StaticAttributes: []i.StaticAttribute{{ + Name: "test", + Type: "Number", + Value: 6, + Metadata: map[string]i.Metadata{}, + }}, } iota.DeleteDevice(fs, d.Id) err := iota.CreateDevice(fs, d)