Module Info (v1)#

REST Requests:#

Websockets:#

Websocket endpoint: GET /api/v1/info/notifications

Websocket Events:

Module Info REST API (v1)#

GET /api/v1/info/properties#

Get device property list (a fixed subset)

Status Codes:

Example:

Get device property list

GET /api/v1/info/properties
[
  {
    "key": "persist.product.name",
    "label": "Wi-Fi Access Point",
    "value": "anafi4k-flc"
  },
  {
    "key": "ro.factory.wifi.mac_address",
    "label": "Wi-Fi MAC Address",
    "value": ""
  },
  {
    "key": "ro.product.model",
    "label": "Model",
    "value": "Anafi4K"
  },
  {
    "key": "ro.factory.serial",
    "label": "Serial Number",
    "value": "000000000000000000"
  },
  {
    "key": "ro.parrot.build.version",
    "label": "Software Version",
    "value": "0.0.0"
  },
  {
    "key": "ro.build.date",
    "label": "Software Build Date",
    "value": "Thu Dec 21 19:45:55 CET 2017"
  },
  {
    "key": "ro.revision",
    "label": "Hardware Version",
    "value": "0"
  }
]
PUT /api/v1/info/usb_mode#

switch usb mode

Parameters:
  • usb_mode (usb_mode) – the requested usb mode

Status Codes:

Example:

switch usb mode to mass_storage

PUT /api/v1/info/usb_mode?mode=mass_storage

Module Info Websocket events (v1)#

Endpoint:

GET /api/v1/info/notifications#
Request Headers:

Events:

Module Info JSON Schema (v1)#

property_changed#

type

object

properties

  • name

string

  • data

property_changed_event_data

property#

type

object

properties

  • key

string

  • label

string

  • value

string

usb_mode#

type

string

oneOf

in this usb mode the drone is view as an ethernet over usb device

const

rndis

in this usb mode the drone is view as a classic mass storage device

const

mass_storage

property_changed_event_data#

type

object

properties

  • property_change

property_change

property_change#

type

object

properties

  • key

string

  • old_value

string

  • new_value

string