TCP/WebSocket API
  • Getting Started
  • Information and Preferences
    • Get Device Information
    • Request Device Configuration
    • Configure Device Configuration
    • Request Accessory Names
    • Configure Accessory Names
  • Accessory Controls
    • Outlets
    • Nightlight
    • Color Light - HSV
    • Color Light - Temperature
  • Fetch Accessory Status
    • Outlets
    • Nightlight
    • Color Light
    • Sensors
  • Synchronous Updates
    • Outlets
    • Nightlight
    • Sensors
  • OTA
    • Request Available Updates
    • Perform OTA Update
    • OTA Download Progress (Synchronous)
    • OTA Result Update (Synchronous)
  • Device Management
    • InvisOutlet
      • Restart InvisOutlet
      • Reset InvisOutlet's Network Settings
      • Factory Reset InvisOutlet
      • Check MQTT Status
      • Home Assistant Discovery
    • InvisDeco
      • Restart InvisDeco
      • Reset InvisDeco
      • Occupancy Sensor Calibration
      • Temperature and Relative Humidity Calibration
  • API Reference
    • Terminology
Powered by GitBook
On this page
  1. OTA

Perform OTA Update

[TCP/WebSocket<-->IM]

Performing updates to the latest firmware for either InvisOutlet or InvisDeco.

Request

  • packetID: Represents the ID of the packet. This can be any six digit number, no leading zeros.

  • payload:

    • callbackName: 21

    • callbackArgs:

      • 0: Specifies which device to update; 1 - InvisOutlet, 2 - InvisDeco.

      • 1: Specifies which method to update InvisDeco; 0 - via Wi-Fi, 1 - via InvisOutlet

If you are having trouble using the via Wi-Fi method to update InvisDeco, please try to update InvisDeco via the via InvisOutlet method.

{
    "packetID": 414883,  
    "payload":
    {
        "callbackName": 21,  
        "callbackArgs": [1,0] 
    }
}

Response

  • sn: The serial number of the InvisOutlet.

  • packetID: Represents the ID of the packet based on request packetID.

  • PUBACK : If the request is successfully processed; 1 - Update will be performed, 0 - Update failed to initialize (may due to the current device running firmware version is already up to date).

{
    "sn": "0003C44076",
    "packetID": 414883,
    "PUBACK": 1
}

The OTA update status will be updated via OTA Download Progress (Synchronous) and OTA Result Update (Synchronous). Please note the packetID will be different then the requested packetID.

PreviousRequest Available UpdatesNextOTA Download Progress (Synchronous)

Last updated 3 months ago