| | |
| | | import com.google.gson.Gson; |
| | | import com.hdl.linkpm.sdk.core.exception.HDLException; |
| | | import com.hdl.photovoltaic.base.CustomBaseActivity; |
| | | import com.hdl.photovoltaic.bean.InverterBean; |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.databinding.ActivityTestMainBinding; |
| | | import com.hdl.photovoltaic.enums.ShowErrorMode; |
| | |
| | | break; |
| | | |
| | | case "读取逆变器详情(3)": { |
| | | HdlDeviceLogic.getInstance().getGatewayInfo(gatewayBean.getDevice_mac(), new LinkCallBack<GatewayBean>() { |
| | | HdlDeviceLogic.getInstance().getGatewayInfo(gatewayBean.getDevice_mac(), new LinkCallBack<InverterBean>() { |
| | | @Override |
| | | public void onSuccess(GatewayBean obj) { |
| | | public void onSuccess(InverterBean obj) { |
| | | gsonConvertJsonStr(obj); |
| | | } |
| | | |
| | |
| | | public void onSuccess(Boolean obj) { |
| | | hideLoading(); |
| | | gsonConvertJsonStr(obj); |
| | | HdlDeviceLogic.getInstance().removeLocalCacheMemoryGateway(UserConfigManage.getInstance().getHomeId(), mGatewayBean.getDevice_mac()); |
| | | HdlDeviceLogic.getInstance().removeLocalCacheMemoryGatewayToMac(UserConfigManage.getInstance().getHomeId(), mGatewayBean.getDevice_mac()); |
| | | HdlDeviceLogic.getInstance().delInverterDevice(UserConfigManage.getInstance().getHomeId(), mGatewayBean.getDeviceId(), null); |
| | | } |
| | | |