Skip to content

Commit 3ec712f

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 1eb4630 commit 3ec712f

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

lib/services/common/iotManagerService.js

+3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ function register(callback) {
5252
service: service.service,
5353
service_path: service.subservice,
5454
attributes: service.attributes,
55+
lazy: service.lazy,
56+
commands: service.commands,
5557
static_attributes: service.staticAttributes,
58+
internal_attributes: service.internalAttributes,
5659
timezone: service.timezone,
5760
timestamp: service.timestamp
5861
};

test/unit/examples/iotamRequests/registrationWithGroups.json

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@
1717
"name": "status",
1818
"type": "Boolean"
1919
}
20+
],
21+
"lazy": [
22+
{
23+
"name": "luminescence",
24+
"type": "Lumens"
25+
}
26+
],
27+
"commands":[
28+
{
29+
"name": "wheel1",
30+
"type": "Wheel"
31+
}
2032
]
2133
}
2234
]

test/unit/examples/iotamRequests/registrationWithGroupsWithoutCB.json

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
"name": "status",
1717
"type": "Boolean"
1818
}
19+
],
20+
"commands": [
21+
{
22+
"name": "wheel1",
23+
"type": "Wheel"
24+
}
25+
],
26+
"lazy": [
27+
{
28+
"name": "luminescence",
29+
"type": "Lumens"
30+
}
1931
]
2032
}
2133
]

test/unit/examples/iotamRequests/registrationWithStaticGroups.json

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"type": "location",
2525
"values": "123,12"
2626
}
27+
],
28+
"commands": [
29+
{
30+
"name": "wheel1",
31+
"type": "Wheel"
32+
}
2733
]
2834
}
2935
]

0 commit comments

Comments
 (0)