# Class SendCommandToDeviceRequest (2.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.9.2 (latest)](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.9.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.8.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.7.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.6.4](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.5.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.4.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.3.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.2.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.1.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [2.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.SendCommandToDeviceRequest)
- [0.3.3](https://docs.cloud.google.com/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.SendCommandToDeviceRequest)

    SendCommandToDeviceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request for `SendCommandToDevice`.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. |
| `binary_data` | `bytes` Required. The command data to send to the device. |
| `subfolder` | `str` Optional subfolder for the command. If empty, the command will be delivered to the /devices/{device-id}/commands topic, otherwise it will be delivered to the /devices/{device-id}/commands/{subfolder} topic. Multi-level subfolders are allowed. This field must not have more than 256 characters, and must not contain any MQTT wildcards ("+" or "#") or null characters. |