| | |
| | | } |
| | | |
| | | |
| | | } else if (linkResponse.getTopic().endsWith("/app/thing/property/send")) { |
| | | //设备状态变更topic:/user/${homeId}/app/thing/property/send |
| | | if (linkResponse.getData() == null) { |
| | | HdlLogLogic.print("设备状态变更--->数据为空", false); |
| | | return; |
| | | } |
| | | else if (linkResponse.getTopic().endsWith("/app/thing/property/send")) { |
| | | // //设备状态变更topic:/user/${homeId}/app/thing/property/send |
| | | // if (linkResponse.getData() == null) { |
| | | // HdlLogLogic.print("设备状态变更--->数据为空", false); |
| | | // return; |
| | | // } |
| | | // try { |
| | | // Gson gson = new Gson(); |
| | | // Type typeOfT = new TypeToken<List<OidBean>>() { |
| | | // }.getType(); |
| | | // String json = gson.toJson(linkResponse.getData()); |
| | | // } catch (Exception ignored) { |
| | | // } |
| | | HDLUniMP.UniCallBackBaseBean uniCallBackBaseBean = new HDLUniMP.UniCallBackBaseBean(); |
| | | uniCallBackBaseBean.setType(linkResponse.getTopic()); |
| | | uniCallBackBaseBean.setData(linkResponse.getData()); |
| | | HdlUniLogic.getInstance().sendUni(HDLUniMP.UNI_EVENT_NOTIFICATION_DEVICE_MODEL, uniCallBackBaseBean); |
| | | } |
| | | |
| | | } |