# Check MQTT Status

> Check if the InvisOutlet's connection status to the MQTT broker.

**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>: 27
  * <mark style="color:red;">`callbackArgs`</mark>:&#x20;
    * `0`: Specifies what MQTT commands to send; 0 - Check MQTT status, 1 - Clear Home Assistant Discovery Payload, 2 - Send Home Assistant Discovery Payload.

```json
{
    "packetID": 414883,  
    "payload":
    {
        "callbackName": 27,  
        "callbackArgs": [0] 
    }
}
```

**Response**

* <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 - InvisOutlet is connected to the MQTT broker, 0 - InvisOutlet is not connected to the MQTT broker (check broker IP address, username, password)

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

{% hint style="info" %}
The MQTT configuration is set via [Configure Device Configuration](https://api.intecular.com/invisoutlet-pro/information-and-preferences/configure-device-configuration).
{% endhint %}
