net: lwm2m: mark OPTIONAL resources for LwM2M Server

Using OMA Technical Specification LwM2M Enabler 1.0.2 dated
Feb. 9, 2018, let's mark the OPTIONAL resources for an LwM2M
Server object (Section E.1 "LwM2M Object: Server")

Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
This commit is contained in:
Michael Scott 2018-04-30 17:34:45 -07:00 committed by Jukka Rissanen
parent 4fb16db26d
commit 9506b427b7

View file

@ -52,10 +52,10 @@ static struct lwm2m_engine_obj server;
static struct lwm2m_engine_obj_field fields[] = {
OBJ_FIELD_DATA(SERVER_SHORT_SERVER_ID, R, U16),
OBJ_FIELD_DATA(SERVER_LIFETIME_ID, RW, U32),
OBJ_FIELD_DATA(SERVER_DEFAULT_MIN_PERIOD_ID, RW, U32),
OBJ_FIELD_DATA(SERVER_DEFAULT_MAX_PERIOD_ID, RW, U32),
OBJ_FIELD_EXECUTE(SERVER_DISABLE_ID),
OBJ_FIELD_DATA(SERVER_DISABLE_TIMEOUT_ID, RW, U32),
OBJ_FIELD_DATA(SERVER_DEFAULT_MIN_PERIOD_ID, RW_OPT, U32),
OBJ_FIELD_DATA(SERVER_DEFAULT_MAX_PERIOD_ID, RW_OPT, U32),
OBJ_FIELD_EXECUTE_OPT(SERVER_DISABLE_ID),
OBJ_FIELD_DATA(SERVER_DISABLE_TIMEOUT_ID, RW_OPT, U32),
OBJ_FIELD_DATA(SERVER_STORE_NOTIFY_ID, RW, U8),
/* Mark Transport Binding RO as we only support UDP atm */
OBJ_FIELD_DATA(SERVER_TRANSPORT_BINDING_ID, R, STRING),