Hello
I am using the nrf9160 DK board and developing an LWM2M application.
I would like to use the LWM2M software management object (/9)
When I change the config file to include this object, I get a compilation error in the library code, file ../zephyr/subsys/net/lib/lwm2m/lwm2m_swmgmt.c
static void set_sw_update_state(struct lwm2m_swmgmt_data *instance, uint8_t state)
{
int ret;
struct lwm2m_obj_path obj_path = LWM2M_OBJ(LWM2M_OBJECT_SOFTWARE_MANAGEMENT_ID,
instance->obj_inst_id,
SWMGMT_UPDATE_STATE_ID);
ret = lwm2m_set_u8(obj_path, state);
if (ret != 0) {
LOG_ERR("Could not set state");
}
}
the call to lwm2m_set_u8 should pass the address of the structure, not the structure itself.
I see this in SDK 2.6.1 and have checked previous versions back to 2.4.0
Is this a known issue? Are you aware of anyone else using this object