@ -155,12 +155,16 @@ object ParseHelper {
// 存储范围最大值
MMKVUtils.put("range_${gasType}", "0$unit~$rangHexLong$unit")
try {
// 上传实时气体数据
tempGasData.add(gas)
if (tempGasData.size > GAS_CLOUD_UPLOAD_SIZE_ONCE) {
devicesApi.uploadGasData(tempGasData)
tempGasData.clear()
}
} catch (e: Exception) {
e.printStackTrace()