editSettings

abstract suspend fun editSettings(destNum: Int, block: suspend AdminEditScope.() -> Unit)(source)

Runs block inside a begin/commit edit-settings transaction on destNum.

The session is opened before block runs and committed after it returns normally, so callers can neither forget to commit nor leak a half-open session. Operations inside the block target destNum implicitly. Mirrors the SDK's AdminApi.editSettings { }.

All admin packets for the session — begin, the block's writes, and commit — are issued from the calling coroutine, which is required for the firmware to associate them with one transaction.