|
|
@@ -1079,15 +1079,15 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
r = JSONUtil.getErrorMsg(e);
|
|
|
}
|
|
|
} else {
|
|
|
- ObjectNode resultNode = objectMapper.createObjectNode();
|
|
|
- resultNode.set("ext_sub_regions", objectMapper.valueToTree(transformedList));
|
|
|
- String jsonStringTwo = objectMapper.writeValueAsString(resultNode);
|
|
|
- try {
|
|
|
- StringBuffer getTopic = new StringBuffer("/dev/" + dev_id + "/set_device_param");
|
|
|
- MqttUtil.pub(getTopic.toString(), jsonStringTwo);
|
|
|
- } catch (Exception e) {
|
|
|
- r = JSONUtil.getErrorMsg(e);
|
|
|
- }
|
|
|
+// ObjectNode resultNode = objectMapper.createObjectNode();
|
|
|
+// resultNode.set("ext_sub_regions", objectMapper.valueToTree(transformedList));
|
|
|
+// String jsonStringTwo = objectMapper.writeValueAsString(resultNode);
|
|
|
+// try {
|
|
|
+// StringBuffer getTopic = new StringBuffer("/dev/" + dev_id + "/set_device_param");
|
|
|
+// MqttUtil.pub(getTopic.toString(), jsonStringTwo);
|
|
|
+// } catch (Exception e) {
|
|
|
+// r = JSONUtil.getErrorMsg(e);
|
|
|
+// }
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
@@ -1095,15 +1095,15 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
sql.append(" where dev_id ='" + dev_id + "' ");
|
|
|
baseDAO.updateSQL(sql.toString());
|
|
|
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- JSONArray extRegion = new JSONArray();
|
|
|
- jsonObject.put("ext_sub_regions", extRegion);
|
|
|
- try {
|
|
|
- StringBuffer getTopic = new StringBuffer("/dev/" + dev_id + "/set_device_param");
|
|
|
- MqttUtil.pub(getTopic.toString(), jsonObject.toJSONString());
|
|
|
- } catch (Exception e) {
|
|
|
- r = JSONUtil.getErrorMsg(e);
|
|
|
- }
|
|
|
+// JSONObject jsonObject = new JSONObject();
|
|
|
+// JSONArray extRegion = new JSONArray();
|
|
|
+// jsonObject.put("ext_sub_regions", extRegion);
|
|
|
+// try {
|
|
|
+// StringBuffer getTopic = new StringBuffer("/dev/" + dev_id + "/set_device_param");
|
|
|
+// MqttUtil.pub(getTopic.toString(), jsonObject.toJSONString());
|
|
|
+// } catch (Exception e) {
|
|
|
+// r = JSONUtil.getErrorMsg(e);
|
|
|
+// }
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|