> For the complete documentation index, see [llms.txt](https://api.intecular.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.intecular.com/invisoutlet-c-pro/ota/request-available-updates.md).

# Request Available Updates

\[TCP <--> InvisOutlet]

> Check available firmware updates (Over-the-Air updates) for InvisOutlet and InvisDeco.

**Request**

* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet. This can be any six digit number, no leading zeros.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark>: 20

```json
{
  "packetID": 221040,
  "payload":
  {
    "callbackName": 20
  }
}
```

**Response**

Succes&#x73;**:**

* <mark style="color:red;">`sn`</mark>: The serial number of the InvisOutlet.
* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet based on request <mark style="color:red;">`packetID`</mark>.
* <mark style="color:red;">`PUBACK`</mark> : If the request is successfully processed; 1 - Successful.
  * <mark style="color:red;">`callbackName`</mark>: 20
    * <mark style="color:red;">`callbackArgs`</mark>:&#x20;
      * <mark style="color:red;">`IM`</mark>:
        * <mark style="color:red;">`fw_rev`</mark>: The current running firmware version of the InvisOutlet.
        * <mark style="color:red;">`available_fw_rev`</mark>: The available firmware version for the InvisOutlet; if the available firmware revision matches the current firmware revision, indicating that there is no available updates.
      * <mark style="color:red;">`PM`</mark> :
        * <mark style="color:red;">`fw_rev`</mark>: The current running firmware version of the InvisDeco.
        * <mark style="color:red;">`available_fw_rev`</mark>: The available firmware version for the InvisDeco; if the available firmware revision matches the current firmware revision, indicating that there is no available updates.

```json
{
  "sn": "12A3520006E",
  "packetID": 221040,
  "PUBACK": 1,
  "payload": {
    "callbackName": 20,
    "callbackArgs": {
      "IM": {
        "fw_rev": "0.0.1",
        "available_fw_rev": "0.0.2"
      },
      "PM": {
        "fw_rev": "1.0.2",
        "available_fw_rev": "1.0.2"
      }
    }
  }
}
```

Fai&#x6C;**:**

* <mark style="color:red;">`sn`</mark>: The serial number of the InvisOutlet.
* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet based on request <mark style="color:red;">`packetID`</mark>.
* <mark style="color:red;">`PUBACK`</mark> : If the request is successfully processed; 0 - Failed.

```json
{
  "sn": "12A3520006E",
  "packetID": 221040,
  "PUBACK": 0
}
```
