private void scan() {
ArrayList<ClientScanResult> clients = wifiApManager.getClientList(false);
device1.append("Clients: \n");
for (ClientScanResult clientScanResult : clients) {
device1.append("####################\n");
device1.append("IpAddr: " + clientScanResult.getIpAddr() + "\n");
device1.append("Device: " + clientScanResult.getDevice() + "\n");
device1.append("HWAddr: " + clientScanResult.getHWAddr() + "\n");
device1.append("isReachable: " + clientScanResult.isReachable() + "\n");
}
}
我使用此代码,但显示没有任何内容。