Commit 29b206c52ee13dce9f218abb938c1976bf5c98c6

Authored by 房远帅
1 parent 5aa06d41

池州经开区设备上报

... ... @@ -184,7 +184,7 @@ public class CzDeviceReportService {
184 184
185 185 try {
186 186 log.debug("开始MQTT发布: deviceId={}", deviceId);
187   - MqttUtils.quickPublish(broker, topic, username, password, clientId, JSON.toJSONString(deviceMap));
  187 + MqttUtils.publish(broker, topic, username, password, clientId, JSON.toJSONString(deviceMap));
188 188 successCount++;
189 189
190 190 // 每10个设备记录一次进度
... ... @@ -318,4 +318,4 @@ public class CzDeviceReportService {
318 318 log.info("数据库操作完成,返回{}条记录", resultList.size());
319 319 return resultList;
320 320 }
321   -}
\ No newline at end of file
  321 +}
... ...