Code example for WifiInfo

Methods: getBSSID, getIpAddress, getLinkSpeed, getMacAddress, getNetworkId, getRssi, getSSID

0
		event.addPair("dhcp_lease_duration", dhcp.leaseDuration);
		event.addPair("dhcp_server_address", dhcp.serverAddress);
		event.addPair("dhcp_netmask", dhcp.netmask);
 
		WifiInfo info = wifiManager.getConnectionInfo();
		event.addPair("bssid", info.getBSSID());
		event.addPair("ip", info.getIpAddress());
		event.addPair("link_speed", info.getLinkSpeed());
		event.addPair("mac_address", info.getMacAddress());
		event.addPair("network_id", info.getNetworkId());
		event.addPair("ssid", info.getSSID());
		event.addPair("rssi", info.getRssi());
 
		addAndroidDeviceFields(event);
 
		Splunk.getInstance().logEvent(event, "wifi", SOURCE, INDEX);
 
	} 
 
	public static void logActivity() {