Good day
I am currently trying to adapt the lwm2m client sample from Zephyr and was wondering if there was a way to create multiple resource instances for the generic sensor object without changing the library. Also , I was able to create multiple instances from the sensor value resource using this within the object creation:
// NULL, NULL, NULL, sensor_value_write_cb, NULL); INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 3, true, true, &sensor_value[index], sizeof(*sensor_value), NULL, NULL, NULL, sensor_value_write_cb, NULL);
However, I cant do the same for the timestamp resource. When using this :
INIT_OBJ_RES(TIMESTAMP_RID, res[index], i, res_inst[index], j, 3, true, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
I seem to be getting this error on the Leshan demo server:

Any explanation or thoughts would be very helpful.
thank you!
Kind regards,
Hassan