Skip to content

GetDropStatus

Query the drop detection status.

Note: If the vending machine drop detection switch is not enabled, please reject the response.

AttributeTypeDefault ValueDescription
addrintSlave address.
checkboolWhether to enable drop detection.
kotlin
// serial driver
private lateinit var driver: UBoard

fun your_method() {
    // addr
    val para = DSReplyPara(
        addr
    ).apply {
        driver.GetDropStatus(this)
    }
    if (!para.isOK) {
        throw Exception("get drop status failed")
    }
}

DSReplyPara Attribute Description

AttributeTypeDefault ValueDescription
statusint0 - Drop detection not connected or blocked
1 - Drop detection is normal with unobstructed beam

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