toggleBuzzer

abstract suspend fun toggleBuzzer(deviceId: String, enabled: Boolean): CommandResponse

Toggles the buzzer on or off for the given deviceId.

Return

A CommandResponse indicating the result.

Parameters

deviceId

The identifier of the target device.

enabled

True to enable the buzzer, false to disable it.


abstract fun toggleBuzzer(deviceId: String, enabled: Boolean, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of toggleBuzzer for Java interoperability.

Parameters

deviceId

The identifier of the target device.

enabled

True to enable the buzzer, false to disable it.

callback

Callback to receive the CommandResponse.