| | |
| | | responseTv.setText(info.toString()); |
| | | if (info != null) { |
| | | HDLLinkConfig.getInstance().setGatewayId(info.getGatewayId()); |
| | | //HDLLinkConfig.getInstance().setIpAddress(info.ip); |
| | | } |
| | | } |
| | | |
| | |
| | | void searchGatewayBroadcast() { |
| | | tv.setText("搜索网关中..."); |
| | | responseTv.setText(""); |
| | | HDLLinkConfig.getInstance().getGatewayId(); |
| | | |
| | | String gatewayId = HDLLinkConfig.getInstance().getGatewayId(); |
| | | Log.d("panlili", "MainActivity.java:searchGatewayBroadcast----->gatewayId= " + gatewayId); |
| | | HDLLink.getInstance().searchGatewayBroadcast(new HDLAuthSocket.SearchGatewayCallBack() { |
| | | @Override |
| | | public void onError(HDLLinkException e) { |