分批次发送mqtt指令
This commit is contained in:
parent
1aba7557e0
commit
467486355b
|
|
@ -739,7 +739,6 @@ public class IotCommonP3ServiceImpl {
|
|||
try{
|
||||
log.error("===========预发送指令========={}============", variables.size());
|
||||
if (deploy != null && variables != null && !variables.isEmpty()) {
|
||||
if(variables.size()>10){
|
||||
//如果超过十个分多次,十个一组
|
||||
int batchSize = 10;
|
||||
for (int i = 0; i < variables.size(); i += batchSize) {
|
||||
|
|
@ -755,9 +754,6 @@ public class IotCommonP3ServiceImpl {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}catch (Exception e){
|
||||
//抛出未注入时的报错
|
||||
e.printStackTrace();
|
||||
|
|
|
|||
Loading…
Reference in New Issue