> 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/information-and-preferences/get-device-information.md).

# Get Device Information

\[TCP -> InvisOutlet]

> Request and retrieve detailed device information for both 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>: 12

```json
{
  "packetID": 373184,    
  "payload":
  {
    "callbackName": 12
  }
}
```

**Response**

* <mark style="color:red;">`sn`</mark>: The serial number of the device.
* <mark style="color:red;">`packetID`</mark>: A randomly generated six-digit number.
* <mark style="color:red;">`PUBACK`</mark> : If the request is successfully processed; 1 - Successful, 0 - Fail.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark>: 12
  * <mark style="color:red;">`callbackArgs`</mark>:&#x20;
    * <mark style="color:red;">`IM`</mark>:
      * <mark style="color:red;">`sn`</mark>: Serial number
      * <mark style="color:red;">`MAC`</mark>: MAC address
      * <mark style="color:red;">`device`</mark>: Name of the device role
      * <mark style="color:red;">`type`</mark>: Name of the device type *(this field only exists if the device type is C)*
      * <mark style="color:red;">`hw_rev`</mark>: Hardware version of the InvisOutlet
      * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the InvisOutlet
    * <mark style="color:red;">`PM`</mark>:
      * <mark style="color:red;">`online`</mark>: The status of whether the InvisDeco is connected to InvisOutlet
      * <mark style="color:red;">`sn`</mark>: Serial number
      * <mark style="color:red;">`MAC`</mark>: MAC address
      * <mark style="color:red;">`device`</mark>: Name of the device role
      * <mark style="color:red;">`type`</mark>: Name of the device type
      * <mark style="color:red;">`radar`</mark>: Occupancy sensor device information
        * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the occupancy sensor
        * <mark style="color:red;">`hw_type`</mark>: Hardware type of the occupancy sensor
        * <mark style="color:red;">`MAC`</mark>: MAC address of the occupancy sensor
      * <mark style="color:red;">`hw_rev`</mark>: Hardware version of the InvisDeco
      * <mark style="color:red;">`fw_rev`</mark>: Firmware version of the InvisDeco

```json
{
  "sn": "12A3520006E",
  "packetID": 373184,
  "PUBACK": 1,
  "payload": {
    "callbackName": 12,
    "callbackArgs": {
      "IM": {
        "sn": "12A3520006E",
        "MAC": "10BDA3AD5F10",
        "device": "InvisOutlet",
        "type": "C",
        "hw_rev": "revA",
        "fw_rev": "0.0.1"
      },
      "PM": {
        "online": true,
        "sn": "24A182018C0",
        "MAC": "08A6F77CBCE8",
        "device": "InvisDeco",
        "type": "Pro",
        "radar": {
          "fw_ver": "V2.49.24092917",
          "hw_type": "0100",
          "MAC": "DE8F27147941"
        },
        "hw_rev": "revA",
        "fw_rev": "1.0.2"
      }
    }
  }
}
```
