WiFi RS21 Authentication Failure

I’m having trouble getting the WiFi RS21 module to connect to my wireless network.

I’ve gone through all the previous posts here and they all give the same results: it will always throw a JoinException with the message “Authentication Failure”

Here is the code I am using to attempt the connection:

 public partial class Program
    {
        #region Confidential
        string SSID = "mySSID";
        string PASSWORD = "wpa2-aes-passkey";
 
        #endregion
 
        GT.Timer Kick;
        WiFiRS9110.NetworkParameters network;
 
        // This method is run when the mainboard is powered up or reset.   
        void ProgramStarted()
        {
            Debug.Print("Program Started");
 
            wifiRS21.NetworkInterface.Open();
            wifiRS21.NetworkInterface.EnableDhcp();
            wifiRS21.NetworkInterface.EnableDynamicDns();
            wifiRS21.UseThisNetworkInterface();
 
 
            NetworkChange.NetworkAddressChanged += NetworkChange_NetworkAddressChanged;
            NetworkChange.NetworkAvailabilityChanged += NetworkChange_NetworkAvailabilityChanged;

            Kick = new GT.Timer(5000);
            Kick.Tick += Kick_Tick;
            Kick.Start();
        }
 
        void Kick_Tick(GT.Timer timer)
        {
            Debug.Print("Attempt to Join");
            try
            {
                WiFiRS9110.NetworkParameters[] results = wifiRS21.NetworkInterface.Scan(SSID);
                if (results != null && results.Length > 0)
                {
                    network = results[0];
                    network.Key = PASSWORD;

                    wifiRS21.NetworkInterface.Join(network);
                }                 
            }
            catch (Exception ex)
            {
                //Debug.Print("Exception : " + ex.Message);
                Debug.Print("*** " + network.Ssid + " ***");
                Debug.Print("Channel: " + network.Channel);
                Debug.Print("Key: " + network.Key);
                Debug.Print("Network Type: " + network.NetworkType);
                Debug.Print("Physical Address: " + network.PhysicalAddress.ToString());
                Debug.Print("Rssi: " + network.Rssi);
                Debug.Print("Security Mode: " + network.SecurityMode);
            }
        }
 
        private void NetworkChange_NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e)
        {
            Debug.Print("Network Availability : " + e.IsAvailable.ToString());
        }
 
        private void NetworkChange_NetworkAddressChanged(object sender, EventArgs e)
        {
            Debug.Print("Address : " + wifiRS21.NetworkInterface.IPAddress);
        }
    }

I’ve tried joining the network with no password on the connection and I still will get an Authentication Failure when attempting to connect. Has anybody had any success fixing this issue?

Regards,
Darwin

@ DarwinF - Can you try with a different access point? Do you have good signal strength where you’re testing?

I can grab another access point to test with later this week and give it a shot. I did try using my smartphone as a hotspot and it gave the same results which is why I don’t believe it is a problem with AP.

The signal strength is incredible as the AP is about 5ft away.