Help Center > > Developer Guide> SDK Usage Guide on the Device Side> LiteOS SDK Integration Development Guide> Appendix 1 LWM2M> Object Defined by LWM2M

Object Defined by LWM2M

Updated at: Jun 26, 2019 GMT+08:00

Object Concept

An object is a collection of resources that are logically used for specific purposes. For example, firmware upgrade. The object includes all resources used for firmware upgrade, such as firmware packages, firmware URLs, upgrade execution, and upgrade results.

Before using the functions of an object, instantiate the object. An object can have multiple instances, which are numbered from 0 in ascending order.

LWM2M has defined fixed IDs for the standard objects defined by the OMA. For example, the ID of the firmware upgrade object is 5. The object includes eight types of resources, which are numbered from 0 to 7. The ID of the firmware package name is 6. Therefore, URI 5/0/6 represents the firmware package name of instance 0 of the firmware upgrade object.

Object Format

Name

Object ID

Instance

Mandatory

Object URN

Object Name

16-bit Unsigned Integer

Multiple/Single

Mandatory/Optional

urn:oma:LwM2M:{oma,ext,x}:{Object ID}

Standard Object Defined by OMA

The OMA LWM2M specifications define the following seven standard objects.

Object

Object ID

description

LwM2M Security

0

Includes the URI and payload security mode of an LWM2M bootstrap server and information about partial algorithms or keys and short server IDs.

LwM2M Server

1

Includes the short ID of a server, registration life cycle, minimum or maximum period of observation, and binding models.

Access Control

2

Includes the access control permission of each object.

Device

3

Includes the device manufacturer, model, serial number, power, and memory.

Connectivity Monitoring

4

Includes the network standard, link quality, and IP address.

Firmware

5

Includes the firmware package and its URI, status, and upgrade results.

Location

6

Includes the latitude, longitude, altitude, and time stamp.

Connectivity Statistics

7

Includes the data volume sent and received during data collection and package size.

Device-cloud interconnect components match OceanConnect capabilities and support the following LWM2M APPDATA with the object ID of 19.

Object

Object ID

Description

LwM2M APPDATA

19

Includes application service data on LWM2M servers, such as water meter data.

NOTE:

For details about other common objects defined by the OMA, see http://www.openmobilealliance.org/wp/OMNA/LwM2M/LwM2MRegistry.html.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel