# OtaSoftwareUpdateRequestorCommands

# OtaSoftwareUpdateRequestorCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface OtaSoftwareUpdateRequestorCommands
```

<br />

Known direct subclasses [OtaSoftwareUpdateRequestor](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestor)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestor` | API for the OtaSoftwareUpdateRequestor trait. |

*** ** * ** ***

Commands for the OtaSoftwareUpdateRequestor trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorCommands#announceOtaProvider(kotlin.ULong,kotlin.UShort,com.google.home.matter.standard.OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,kotlin.UShort,kotlin.Function1)( providerNodeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, vendorId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, announcementReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum, endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` Announce the presence of a particular OTA provider. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorCommands#announceOtaProviderBatchable(kotlin.ULong,kotlin.UShort,com.google.home.matter.standard.OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,kotlin.UShort,kotlin.Function1)( providerNodeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, vendorId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, announcementReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum, endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorCommands#announceOtaProvider(kotlin.ULong,kotlin.UShort,com.google.home.matter.standard.OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,kotlin.UShort,kotlin.Function1)` command. |

## Public functions

### announceOtaProvider

```
suspend fun announceOtaProvider(
    providerNodeId: ULong,
    vendorId: UShort,
    announcementReason: OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,
    endpoint: UShort,
    optionalArgs: OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> Unit = {}
): Unit
```

Announce the presence of a particular OTA provider.

| Parameters |
|---|---|
| `announcementReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum` | The reason for the announcement. |
| `endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The endpoint ID of the node that implements the OTA Provider cluster. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### announceOtaProviderBatchable

```
fun announceOtaProviderBatchable(
    providerNodeId: ULong,
    vendorId: UShort,
    announcementReason: OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,
    endpoint: UShort,
    optionalArgs: OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> Unit = {}
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorCommands#announceOtaProvider(kotlin.ULong,kotlin.UShort,com.google.home.matter.standard.OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum,kotlin.UShort,kotlin.Function1)` command.

Announce the presence of a particular OTA provider.

| Parameters |
|---|---|
| `announcementReason: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnouncementReasonEnum` | The reason for the announcement. |
| `endpoint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The endpoint ID of the node that implements the OTA Provider cluster. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OtaSoftwareUpdateRequestorTrait.AnnounceOtaProviderCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |