desc:获取温度

main
xiaowusky 1 year ago
parent c4798caca7
commit 3e1392819a

@ -107,6 +107,9 @@ object ParseHelper {
// // 量程 // // 量程
// val rangHex: String = HexUtils.byteArrToHex(it, 11, 11 + 2) // val rangHex: String = HexUtils.byteArrToHex(it, 11, 11 + 2)
// val rangHexLong: Long = HexUtils.hexToLong(rangHex) // val rangHexLong: Long = HexUtils.hexToLong(rangHex)
// // 温度
// val temperatureHex: String = HexUtils.byteArrToHex(it, 17, 17 + 2)
// val temperature: Long = HexUtils.hexToLong(temperatureHex)
// 是否超量程 // 是否超量程
val overRange = value > type.rangMax || status == 8 val overRange = value > type.rangMax || status == 8
LogUtils.w("receive msg 单位转换前 $type, 浓度 = $value $unit, 最大量程 = ${type.rangMax}") LogUtils.w("receive msg 单位转换前 $type, 浓度 = $value $unit, 最大量程 = ${type.rangMax}")

Loading…
Cancel
Save