Help Center> IoT Device Access> FAQs> Command Delivery> What Are the Command and Message Statuses on the IoT Platform?

What Are the Command and Message Statuses on the IoT Platform?

Command Status for Devices That Use LWM2M over CoAP

Commands sent by the platform can be in one of the following statuses:
  • EXPIRED: The command cache duration has expired on the platform and is not delivered to the device.
  • SUCCESSFUL: The platform has delivered the command to the device and received an execution result from the device.
  • FAILED: No result is displayed after the command is parsed by the codec, or the execution result contains ERROR CODE.
  • TIMEOUT: The platform fails to receive an ACK message from the device within a specified period.
  • CANCELED: The command has been canceled on the application side.
  • PENDING: The platform has cached the command and has not delivered it to the device.
  • SENT: The platform has delivered the command to the device.
  • DELIVERED: The platform has delivered the command to the device and received an ACK message from the device.

The figure below shows the conversion between command statuses.

Message Status for Devices That Uses MQTT

  • PENDING: The platform has cached the message because the device is offline.
  • TIMEOUT: The message has been cached on the platform for more than 1 day and has not been delivered.
  • DELIVERED: The message has been delivered to the device.
  • FAILED: The message fails to be delivered to the device.

The figure below shows the conversion between message statuses.