net: lwm2m: mark OPTIONAL resources for IPSO Light Control

Using IPSO Smart Object Guideline: "Smart Objects Starter Pack 1.0"
dated May 27, 2017, let's mark the OPTIONAL resources for an
IPSO Light Control object (Section 16. "IPSO Object: Light Control")

Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
This commit is contained in:
Michael Scott 2018-04-30 17:02:55 -07:00 committed by Jukka Rissanen
parent 7a1024e5c8
commit a5bdbc1751

View file

@ -48,12 +48,12 @@ static char units[MAX_INSTANCE_COUNT][LIGHT_STRING_SHORT];
static struct lwm2m_engine_obj light_control;
static struct lwm2m_engine_obj_field fields[] = {
OBJ_FIELD_DATA(LIGHT_ON_OFF_ID, RW, BOOL),
OBJ_FIELD_DATA(LIGHT_DIMMER_ID, RW, U8),
OBJ_FIELD_DATA(LIGHT_ON_TIME_ID, RW, S32),
OBJ_FIELD_DATA(LIGHT_CUMULATIVE_ACTIVE_POWER_ID, R, FLOAT32),
OBJ_FIELD_DATA(LIGHT_POWER_FACTOR_ID, R, FLOAT32),
OBJ_FIELD_DATA(LIGHT_COLOUR_ID, RW, STRING),
OBJ_FIELD_DATA(LIGHT_SENSOR_UNITS_ID, R, STRING),
OBJ_FIELD_DATA(LIGHT_DIMMER_ID, RW_OPT, U8),
OBJ_FIELD_DATA(LIGHT_ON_TIME_ID, RW_OPT, S32),
OBJ_FIELD_DATA(LIGHT_CUMULATIVE_ACTIVE_POWER_ID, R_OPT, FLOAT32),
OBJ_FIELD_DATA(LIGHT_POWER_FACTOR_ID, R_OPT, FLOAT32),
OBJ_FIELD_DATA(LIGHT_COLOUR_ID, RW_OPT, STRING),
OBJ_FIELD_DATA(LIGHT_SENSOR_UNITS_ID, R_OPT, STRING),
};
static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT];