|
|
@@ -72,7 +72,7 @@ class ModbusActivity : BaseMvpActivity<IModbusView, ModBusPresenter, ActivityMod
|
|
|
return@setOnClickListener
|
|
|
}
|
|
|
ModBusController.openLockBuckle(mBinding?.slaveIdx?.text.toString().toInt(), mBinding?.lockIdx?.text.toString().toInt()) { res ->
|
|
|
- LogUtil.i("开锁卡扣成功 : ${res.toHexStrings()}")
|
|
|
+ LogUtil.i("开锁卡扣 : ${res.toHexStrings()}")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -86,7 +86,13 @@ class ModbusActivity : BaseMvpActivity<IModbusView, ModBusPresenter, ActivityMod
|
|
|
return@setOnClickListener
|
|
|
}
|
|
|
ModBusController.closeLockBuckle(mBinding?.slaveIdx?.text.toString().toInt(), mBinding?.lockIdx?.text.toString().toInt()) { res ->
|
|
|
- LogUtil.i("关锁卡扣成功 : ${res.toHexStrings()}")
|
|
|
+ LogUtil.i("关锁卡扣 : ${res.toHexStrings()}")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ mBinding?.lockRfid?.setOnClickListener {
|
|
|
+ ModBusController.readLockRfid(mBinding?.slaveIdx?.text.toString().toInt(), mBinding?.lockIdx?.text.toString().toInt()) { res ->
|
|
|
+ LogUtil.i("查询锁具RFID : ${res.toHexStrings()}")
|
|
|
}
|
|
|
}
|
|
|
|