Skip to content

Commit 221b6f6

Browse files
Cerfoglgchicco785
authored andcommitted
Added lazy, commands, static and internal attributes to the payload sent to the IoT Agent Manager
* Added lazy, commands, static and internal attributes to the payload sent to the IoT Agent Manager * updated tests
1 parent 510ae37 commit 221b6f6

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

lib/services/common/iotManagerService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ function register(callback) {
5050
service_path: service.subservice,
5151
attributes: service.attributes,
5252
static_attributes: service.staticAttributes,
53+
internal_attributes: service.internalAttributes,
54+
lazy: service.lazy,
5355
commands: service.commands,
5456
description: service.description,
5557
timezone: service.timezone,

test/unit/examples/iotamRequests/registrationWithGroups.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@
1818
"type": "Boolean"
1919
}
2020
],
21-
"commands":[{"name":"wheel1","type":"Wheel"}]
21+
"lazy": [
22+
{
23+
"name": "luminescence",
24+
"type": "Lumens"
25+
}
26+
],
27+
"commands":[
28+
{
29+
"name": "wheel1",
30+
"type": "Wheel"
31+
}
32+
]
2233
}
2334
]
2435
}

test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@
1717
"type": "Boolean"
1818
}
1919
],
20-
"commands":[{"name":"wheel1","type":"Wheel"}]
20+
"commands": [
21+
{
22+
"name": "wheel1",
23+
"type": "Wheel"
24+
}
25+
],
26+
"lazy": [
27+
{
28+
"name": "luminescence",
29+
"type": "Lumens"
30+
}
31+
]
2132
}
2233
]
2334
}

test/unit/examples/iotamRequests/registrationWithStaticGroups.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
"values": "123,12"
2626
}
2727
],
28-
"commands":[{"name":"wheel1","type":"Wheel"}]
28+
"commands": [
29+
{
30+
"name": "wheel1",
31+
"type": "Wheel"
32+
}
33+
]
2934
}
3035
]
3136
}

0 commit comments

Comments
 (0)