Updated on 2023-02-16 GMT+08:00

API Overview

LwM2M Object Resources Supported by the IoT Platform

Table 1

Path

Object

Resource

Function

/rd?ep={nodeId}

Device

Register

Connecting devices to the platform

/3/0/3

Device

Firmware Version

Querying the firmware version

/4/0/0

Connectivity monitoring

Network Bearer

Identifying the type of the network to which the device is connected

/4/0

Connectivity monitoring

Network Signal Strength

Querying the signal level

/4/0/8

Connectivity monitoring

Cell ID

Identifying a cell

/5/0/1

Firmware Update

Package URI

Delivering the firmware download URL

/5/0/2

Firmware Update

Update

Pushing a firmware upgrade notification

/5/0/3

Firmware Update

State

Pushing a firmware upgrade status notification

/5/0/5

Firmware Update

Update Result

Querying the firmware upgrade result

/19/0/0

BinaryAppDataContainer

Data

Upstream service message transmission

/19/1/0

BinaryAppDataContainer

Data

Downstream service data transmission

BinaryAppDataContainer object:

To simplify LwM2M object use for device manufacturers, Huawei defines this object, which is implemented by chips or modules. Devices only need to call AT commands or functions to send and receive service data, regardless of the LwM2M protocol. For details, see Specifications.

Authenticating a Device

API

Description

Authenticating a Device

When a device registers with the IoT platform, the platform authenticates the device. The platform subscribes to resources from the device. The device obtains the token delivered by the IoT platform for subscription. Token information must be carried when other APIs (for example, the API for property reporting) are called.

Reporting Device Properties

API

Description

Reporting Device Properties

A device reports properties to the IoT platform by carrying the token delivered by the IoT platform for /19/0/0 subscription.

Delivering a Command

API

Description

Delivering a Command

The IoT platform delivers a command to a device by packing the command into the payload of the LwM2M write message through the /19/1/0 resource object.