Push Device Status

No Rating

Device State Publish

Device states refers to the states of all hardware of the drone, which will be published to the server through DJI Pilot 2 and the airport, and this information is included in the property of the thing model.

According to the data characteristics of the property, we divide it into two categories: state category and fixed frequency category. The devices are published to the cloud by the following 2 topics.

  • thing/product/{pid}/state state category. The device will publish in case of states changes.
  • thing/product/{pid}/osd fixed frequency category. The device will publish regularly at 0.5 HZ.

See its thing model file for a list of specific device properties.

Topic Message

Devices publish data using different topics according to their data characteristics. However, the format of the message body data published by the device is consistent.

  • thing/product/{pid}/state

    • After the device is powered on, all state properties are published. It will be published only once.

    • When an property changes, the changed property is published once.

    • The server needs to subscribe to the topic (thing/product/{pid}/state) to get the changed properties in the state.

  • thing/product/{pid}/osd

    • The properties of the fixed frequency will be published by fixed frequency when the device is online.
    • All the properties of the fixed frequency will be included in each published message.

Field description


Example of data format