Skip to content

ResetLift

Elevator reset.

Note: If the elevator is not enabled, please reject the response.

AttributeTypeDefault ValueDescription
addrintSlave address.
liftboolWhether to enable the elevator.
kotlin
// serial driver
private lateinit var driver: UBoard

fun your_method() {
    // addr
    val para = ResetReplyPara(
        addr
    ).apply {
        driver.ResetLift(this)
    }
    if (!para.isOK) {
        throw Exception("reset lift failed")
    }
}

© All rights reserved. Dingshang Metal Products Co., Ltd.