net: lwm2m: Add proper resource-level discovery attribute handling
In case an individual resource is being discovered, the LwM2M client should not only fill the attributes assinged at the resource level, but also the ones inherited from the object and object instance levels. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
ac8881f170
commit
9ac83be650
2 changed files with 110 additions and 38 deletions
|
@ -218,7 +218,8 @@ static void test_put_corelink_discovery(void)
|
|||
{
|
||||
.request_level = LWM2M_PATH_LEVEL_RESOURCE,
|
||||
.path_level = LWM2M_PATH_LEVEL_RESOURCE,
|
||||
.expected_payload = "</65535/0/0>;pmax=" STRINGIFY(TEST_PMAX)
|
||||
.expected_payload = "</65535/0/0>;pmin=" STRINGIFY(TEST_PMIN)
|
||||
";pmax=" STRINGIFY(TEST_PMAX)
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue