<br />

# Connectivity Schema

[Nest Thermostat](https://developers.google.com/nest/device-access/api/thermostat)

`sdm.devices.traits.Connectivity`

This trait belongs to any device that has connectivity information.

<br />

## Fields


| Field | Description | Data Type |
|---|---|---|
| `status` | Device connectivity status. | `string` Values: "OFFLINE", "ONLINE" |

<br />

<br />

#### Sample GET request and response

### Request

```
GET /enterprises/project-id/devices/device-id
```

### Response

    {
      "name" : "enterprises/project-id/devices/device-id",
      "traits" : {
        "sdm.devices.traits.Connectivity" : {
          "status" : "ONLINE"
        }
      }
    }

<br />

## Commands

There are no commands available for this trait.


## Errors

The following error code(s) may be returned in relation to this trait:

| Error Message | RPC | Troubleshooting |
|---|---|---|
| Device not found. | `NOT_FOUND` | An invalid or missing device name was specified. Specify a valid device. |

See the [API Error Code Reference](https://developers.google.com/nest/device-access/reference/errors/api) for
the full list of API error codes.

<br />