1. Home
  2. Docs
  3. HTTP API of Decoders
  4. 10 Firmware module

10 Firmware module

Gain firmware information

API instruction

gain the version of firmware and software

Request

  • Method: GET/POST
  • URL: firmware/get.json
  • Headers:
  • submit parameter: no

Response

  • Body
{
  "result": "ok",
  "data": {
    "softwareVersion": "4.1.rf4b46dd",
    "firmwareVersion": "6.0.0"
  }
}
  • return instructions
field type instruction
firmwareVersion alphabetic string firmware version
softwareVersion alphabetic string software version

test interface:

http://192.168.2.123/api/firmware/get.json

Firmware update

API instruction

updated via (HTTP POST multipart/form-data), and upload the related file to the device in advance

Request

  • Method: POST (multipart/form-data)
  • URL: firmware/upgrade.json
  • Headers:

Content-Type: application/octet-stream

  • submit parameter:
field type instruction
path field firmware file name
upload file firmware file data

Response

  • Body
{
  "result": "ok"
}

test interface:

http://192.168.2.123/api/firmware/upgrade.json

How can we help?