增加mqt的查询发送延迟
This commit is contained in:
parent
2366d521be
commit
b35c9e2038
|
|
@ -749,6 +749,8 @@ public class IotCommonP3ServiceImpl {
|
||||||
QueryCmd queryCmd = LhIotUtil.ConstructCmd(batch);
|
QueryCmd queryCmd = LhIotUtil.ConstructCmd(batch);
|
||||||
String cmdStr = JSONObject.toJSONString(queryCmd);
|
String cmdStr = JSONObject.toJSONString(queryCmd);
|
||||||
mqttService.sendMessage(deploy.getDeviceIotUrl(), cmdStr);
|
mqttService.sendMessage(deploy.getDeviceIotUrl(), cmdStr);
|
||||||
|
//增加延迟,发送太快会导致客户端忽略
|
||||||
|
Thread.sleep(2000);
|
||||||
|
|
||||||
log.error("===========当前批次指令========={}============", batch);
|
log.error("===========当前批次指令========={}============", batch);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue