desc:心跳时间调整为10s

main
xiaowusky 2 years ago
parent a1a032391e
commit 47258d623f

@ -20,5 +20,8 @@ const val DELAY_TIME_CHECK_CAMERA = 5
const val NAMESPACE_ANDROID = "http://schemas.android.com/apk/res/android"
// 云同步时20条数据上传
// 云同步时20条数据上传
const val GAS_CLOUD_UPLOAD_SIZE_ONCE = 20
// 心跳时间
const val HEARTBEAT_TIME = 10000L

@ -6,6 +6,7 @@ import android.content.Context
import android.content.Intent
import com.common.commonlib.net.callback.RequestResultCallBack
import com.yinuo.safetywatcher.watcher.bean.GetRtspUrlResponse
import com.yinuo.safetywatcher.watcher.constant.HEARTBEAT_TIME
import com.yinuo.safetywatcher.watcher.net.DevicesApi
import com.yinuo.safetywatcher.watcher.utils.LztekUtil
@ -39,7 +40,7 @@ class HeartbeatService : IntentService("HeartbeatService") {
// 更新流量信息
checkAndUpdateTrafficInfo()
// 睡眠30s
Thread.sleep(30000)
Thread.sleep(HEARTBEAT_TIME)
// 重新轮回
handleActionStart(intent)
}

Loading…
Cancel
Save