void HandleActionNetworkInfoLoaded (AN_NetworkInfo info) {
		string infoString = "";
		infoString += "IpAddress: " + info.IpAddress + " \n";
		infoString += "SubnetMask: " + info.SubnetMask + " \n";
		infoString += "MacAddress: " + info.MacAddress + " \n";
		infoString += "SSID: " + info.SSID + " \n";
		infoString += "BSSID: " + info.BSSID + " \n";

		infoString += "LinkSpeed: " + info.LinkSpeed + " \n";
		infoString += "NetworkId: " + info.NetworkId + " \n";

		Debug.Log(infoString);

		AndroidNativeUtility.ActionNetworkInfoLoaded -= HandleActionNetworkInfoLoaded;
	}
    void HandleActionNetworkInfoLoaded(AN_NetworkInfo info)
    {
        string infoString = "";

        infoString += "IpAddress: " + info.IpAddress + " \n";
        infoString += "SubnetMask: " + info.SubnetMask + " \n";
        infoString += "MacAddress: " + info.MacAddress + " \n";
        infoString += "SSID: " + info.SSID + " \n";
        infoString += "BSSID: " + info.BSSID + " \n";

        infoString += "LinkSpeed: " + info.LinkSpeed + " \n";
        infoString += "NetworkId: " + info.NetworkId + " \n";

        Debug.Log(infoString);

        AndroidNativeUtility.ActionNetworkInfoLoaded -= HandleActionNetworkInfoLoaded;
    }
Esempio n. 3
0
    private void OnNetworkInfoLoaded(string data)
    {
        string[] storeData;
        storeData = data.Split(AndroidNative.DATA_SPLITTER [0]);

        AN_NetworkInfo info = new AN_NetworkInfo();

        info.SubnetMask = storeData[0];
        info.IpAddress  = storeData[1];
        info.MacAddress = storeData[2];
        info.SSID       = storeData[3];
        info.BSSID      = storeData[4];

        info.LinkSpeed = System.Convert.ToInt32(storeData[5]);
        info.NetworkId = System.Convert.ToInt32(storeData[6]);

        ActionNetworkInfoLoaded(info);
    }
Esempio n. 4
0
    private void LoadNetworkInfo(AN_NetworkInfo networkInfo)
    {
        IPAddress  = networkInfo.IpAddress;
        SubnetMask = networkInfo.SubnetMask;
        MacAddress = networkInfo.MacAddress;
        SSID       = networkInfo.SSID;
        BSSID      = networkInfo.BSSID;
        LinkSpeed  = networkInfo.LinkSpeed;
        NetworkID  = networkInfo.NetworkId;

        SA_StatusBar.text = "Network info :: " +
                            "IPAddress is : " + IPAddress +
                            "Subnet Mask is : " + SubnetMask +
                            "Mac Address Is : " + MacAddress +
                            "SSID is : " + SSID +
                            "BSSID is : " + BSSID +
                            "Link Speed Is " + LinkSpeed +
                            "NetworkID is : " + NetworkID;
    }