Code example for WifiInfo

Methods: getBSSIDgetHiddenSSIDgetMacAddressgetSSID

0
    	 
    	// Whatever string is given is what outputs 
    	List<String> info = new ArrayList<String>(); 
    	 
    	// The following come from Wifi Info 
    	info.add("SSID:  " + wifiInfo.getSSID());
    	info.add("BSSID:  " + wifiInfo.getBSSID());
    	info.add("Hidden:  " + wifiInfo.getHiddenSSID());
    	info.add("MAC:  " + wifiInfo.getMacAddress());
    	info.add("Speed:  " + WifiInfo.LINK_SPEED_UNITS);
    	 
    	// The following come from DHCP Info 
    	info.add("IP:  " + Formatter.formatIpAddress(dhcp.ipAddress));
    	info.add("Default Gateway:  " + Formatter.formatIpAddress(dhcp.gateway));
    	info.add("DNS 1:  " + Formatter.formatIpAddress(dhcp.dns1));
    	info.add("DNS 2:  " + Formatter.formatIpAddress(dhcp.dns2));
    	info.add("DHCP:  " + Formatter.formatIpAddress(dhcp.serverAddress));
    	info.add("Subnet:  " + Formatter.formatIpAddress(dhcp.netmask));
    	info.add("Lease Duration:  " + dhcp.leaseDuration);
    	 
Stop searching for code, let great code find you!  Add Codota to your java IDE