setBuzzerDuration

abstract suspend fun setBuzzerDuration(deviceId: String, duration: BuzzerDuration): CommandResponse

Sets the duration of the buzzer sound for the given deviceId.

Return

A CommandResponse indicating the result.

Parameters

deviceId

The identifier of the target device.

duration

The duration of the buzzer, as defined by BuzzerDuration.


abstract fun setBuzzerDuration(deviceId: String, duration: BuzzerDuration, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setBuzzerDuration for Java interoperability.

Parameters

deviceId

The identifier of the target device.

duration

The duration of the buzzer, as defined by BuzzerDuration.

callback

Callback to receive the CommandResponse.