Skip to content

Commit

Permalink
Added lazy, commands, static and internal attributes to the payload s…
Browse files Browse the repository at this point in the history
…ent to the IoT Agent Manager

* Added lazy, commands, static and internal attributes to the payload sent to the IoT Agent Manager
* updated tests
  • Loading branch information
Cerfoglg authored and chicco785 committed Nov 19, 2020
1 parent 510ae37 commit 221b6f6
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/services/common/iotManagerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function register(callback) {
service_path: service.subservice,
attributes: service.attributes,
static_attributes: service.staticAttributes,
internal_attributes: service.internalAttributes,
lazy: service.lazy,
commands: service.commands,
description: service.description,
timezone: service.timezone,
Expand Down
13 changes: 12 additions & 1 deletion test/unit/examples/iotamRequests/registrationWithGroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@
"type": "Boolean"
}
],
"commands":[{"name":"wheel1","type":"Wheel"}]
"lazy": [
{
"name": "luminescence",
"type": "Lumens"
}
],
"commands":[
{
"name": "wheel1",
"type": "Wheel"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
"type": "Boolean"
}
],
"commands":[{"name":"wheel1","type":"Wheel"}]
"commands": [
{
"name": "wheel1",
"type": "Wheel"
}
],
"lazy": [
{
"name": "luminescence",
"type": "Lumens"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
"values": "123,12"
}
],
"commands":[{"name":"wheel1","type":"Wheel"}]
"commands": [
{
"name": "wheel1",
"type": "Wheel"
}
]
}
]
}

0 comments on commit 221b6f6

Please sign in to comment.