| | |
| | | * |
| | | * @return devicesDataList |
| | | */ |
| | | public static List<DevicesData> getLocalDevicesDataList() { |
| | | public static List<DevicesData> getLocalDevicesDataList(Boolean isZigbee) { |
| | | try { |
| | | String getJsonStr = SPUtils.getParam(viewContext, SPUtils.KEY_DEVICE_DATA_LIST, "").toString(); |
| | | // HDLLog.I("getJsonStr: \n" + getJsonStr); |
| | |
| | | |
| | | setRemarkList();//加载备注list |
| | | |
| | | if (!TextUtils.isEmpty(HandleSearch.rcuIp)) {//判断之前是否为RUC模式 |
| | | HandleSearch.curSearchMode = HandleSearch.GET_RCU_DEVICES; |
| | | HDLUdpCore.closeSocket6000(); |
| | | HDLUdpCore.init6008(); |
| | | }else { |
| | | HandleSearch.curSearchMode = HandleSearch.GET_BUS_DEVICES; |
| | | if(isZigbee){ |
| | | HDLUdpCore.closeSocket6008(); |
| | | HDLUdpCore.init6000(); |
| | | HDLUdpCore.closeSocket6000(); |
| | | }else { |
| | | if (!TextUtils.isEmpty(HandleSearch.rcuIp)) {//判断之前是否为RUC模式 |
| | | HandleSearch.curSearchMode = HandleSearch.GET_RCU_DEVICES; |
| | | HDLUdpCore.closeSocket6000(); |
| | | HDLUdpCore.init6008(); |
| | | } else { |
| | | HandleSearch.curSearchMode = HandleSearch.GET_BUS_DEVICES; |
| | | HDLUdpCore.closeSocket6008(); |
| | | HDLUdpCore.init6000(); |
| | | } |
| | | } |
| | | |
| | | return devicesDataList2; |
| | | } |
| | | |