|
@@ -81,6 +81,9 @@ public class ConfigurationUpload {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 开始读取数据
|
|
|
+ */
|
|
|
private void start() {
|
|
|
refreshToken();
|
|
|
for (String device : configurationDeviceNameList) {
|
|
@@ -130,10 +133,10 @@ public class ConfigurationUpload {
|
|
|
Integer code = data.getInteger("code");
|
|
|
if (code != 0) {
|
|
|
this.refreshToken();
|
|
|
+ return getDataList(deviceName);
|
|
|
}
|
|
|
|
|
|
JSONArray dataList = data.getJSONArray("data");
|
|
|
-
|
|
|
return dataList.toJavaList(ConfigurationData.class);
|
|
|
}
|
|
|
|
|
@@ -141,8 +144,6 @@ public class ConfigurationUpload {
|
|
|
* 把数据推送到华为云Iot
|
|
|
*/
|
|
|
public void uploadIot(List<ConfigurationData> configurationDataList, String equipmentNo) {
|
|
|
-
|
|
|
-
|
|
|
UploadEntity uploadEntity = new UploadEntity();
|
|
|
uploadEntity.setEquipmentNo(equipmentNo);
|
|
|
uploadEntity.setIpAddress(ipAddress);
|