Integrations · DJI Cloud API
DJI Cloud API
A Dock or Pilot 2 connects to us.
What this gives you
| What arrives | OSD and state |
| What you can send | 3 commands, listed below |
| What it carries | aircraft |
Connect one
- Turn the protocol on. Settings → Integrations → DJI Cloud API → enable.
- Paste the credential the vendor gave you: DJI app key. It is stored as a reference, so it never appears in an exported manifest.
- Point the device at us and power it on. It announces itself, and appears at the top of Settings → Assets → ADD under heard, not yet added. Press it to adopt. You are not typing a serial number.
The address format
DJI Cloud API runs over MQTT. This is the form that parses:
| Transport | Form | What it means | Example |
|---|---|---|---|
| MQTT | mqtt:BROKER:PORT/TOPIC | A broker and a topic. For an inbound device the broker is ours, so you do not supply it. | mqtt:127.0.0.1:1883/ingest/TOKEN/# |
When it is working
The aircraft appears in Settings → Assets with a live health state, and the Integrations row counts it. On the console, its card carries the commands it accepts.
If nothing arrives
| Symptom | Where to look |
|---|---|
| Nothing arrives, and the row looks healthy | The device is publishing to the wrong topic. Only the topic issued with the credential is routed; anything else is dropped without an error. |
| It connects, then drops | Two things are bound to the same port, or the device and the host disagree about which end dials. See the endpoint forms above. |
| Rejected on connect | The credential is wrong or has been rotated by the vendor. Reissue it and update the field. |
| It never appears as heard | Discovery is off on this link. It is off by default, so nothing is adopted until you say so. |
Commands
Everything this protocol can carry. What a given aircraft accepts is whatever it advertises, which may be fewer.
| Verb | Takes | Does |
|---|---|---|
takeoff_to_point | a point | Take off and fly to a point. |
fly_to_point | a point | Fly to a point, already airborne. |
return_home | nothing | Return to the Dock and land. |
The protocol itself
The standard, or the vendor's own page: DJI Cloud API documentation.
Where to go next
- All integrations for the protocols this build speaks.
- Onboarding an asset for the add flow in full.
- Supported hardware for the products that use it.