I recently purchased a FEZ Spider and a WiFi RS21 Module
. When I look at the documentation at https://www.ghielectronics.com/docs/105/wifi-rs21-module it states that this is obsolete and now I need to use https://www.ghielectronics.com/docs/30/networking
The new documentation uses a class called WiFiRS9110.
Looking at the source code, it seems that Gadgeteer.Modules.GHIElectronics.WiFiRS21 class internally uses the WiFiRS9110 and exposes that class via the property “NetworkInterface”.
So I followed the example at https://www.ghielectronics.com/docs/30/networking and created the code as shown below:
wifiRS21.NetworkDown += new GTM.Module.NetworkModule.NetworkEventHandler(wifiRS21_NetworkDown);
wifiRS21.NetworkUp += new GTM.Module.NetworkModule.NetworkEventHandler(wifiRS21_NetworkUp);
wifiRS21.NetworkInterface.Open(); wifiRS21.NetworkInterface.EnableDhcp(); wifiRS21.NetworkInterface.EnableDynamicDns(); wifiRS21.NetworkInterface.Join("MySSID", "1234ABCD" /*hex code of passphrase*/); while (wifiRS21.NetworkInterface.IPAddress == "0.0.0.0") Thread.Sleep(500); wifiRS21.NetworkInterface.Close();
This code is consistently throwing the error given below (at the Join call):
An unhandled exception of type ‘GHI.Networking.WiFiRS9110.JoinException’ occurred in GHI.Networking.dll
Additional information: Authentication failed.
I could find a related post https://www.ghielectronics.com/community/forum/topic?id=9995 but it was of no help.
Looking for any suggestion to resolve this.
I’m using .NET Micro Framework V4.3 SDK-R2-Beta and the latest GHI package (2014, R5)