| | |
| | | private static volatile HdlDeviceLogic sHdlDeviceLogic; |
| | | |
| | | /** |
| | | * 获取当前住宅的逆变器列表 |
| | | */ |
| | | public List<GatewayBean> getGatewayList() { |
| | | List<GatewayBean> newList = new ArrayList<>(); |
| | | List<GatewayBean> list = HDLLinkLocalGateway.getInstance().getGatewayList(); |
| | | if (list.size() > 0) { |
| | | for (int i = 0; i < list.size(); i++) { |
| | | GatewayBean gatewayBean = list.get(i); |
| | | if (!TextUtils.isEmpty(gatewayBean.getHomeId()) |
| | | && gatewayBean.getHomeId().equals(UserConfigManage.getInstance().getHomeId())) { |
| | | newList.add(gatewayBean); |
| | | } |
| | | |
| | | } |
| | | } |
| | | return newList; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 获取当前对象 |
| | | * |
| | | * @return HdlDeviceLogic |
| | |
| | | * @param sid - |
| | | * @param oid - |
| | | * @param name - |
| | | * @param cloudCallBeak |
| | | * @param cloudCallBeak - |
| | | */ |
| | | public void addInverterDeviceToCloud(String mac, String spk, String sid, String oid, String name, CloudCallBeak<Boolean> cloudCallBeak) { |
| | | |
| | |
| | | * @param mac 设备mac |
| | | * @param linkCallBack 回调update |
| | | */ |
| | | public void steGatewayParam(String mac, LinkCallBack<Boolean> linkCallBack) { |
| | | public void setGatewayRemoteParam(String mac, LinkCallBack<Boolean> linkCallBack) { |
| | | String requestUrl = TopicApi.SET_GATEWAY_REMOTE_EDIT; |
| | | JsonObject json = new JsonObject(); |
| | | json.addProperty("homeId", UserConfigManage.getInstance().getHomeId()); |
| | |
| | | } |
| | | } |
| | | for (int i = 0; i < removeSidList.size(); i++) { |
| | | //获取本地的毫米波 |
| | | //获取本地的逆变器 |
| | | removeInverter(removeSidList.get(i)); |
| | | } |
| | | |