I’m trying to setup a wifi connectiong with a WiFi_RR21 module on a FEZ spider based on some simple example codes online.
However I qucikly get an error:
I the programStarted() I have the following:
wifi.UseDHCP();
wifi.NetworkDown += new GTM.Module.NetworkModule.NetworkEventHandler(wifi_NetworkDown);
wifi.NetworkUp += new GTM.Module.NetworkModule.NetworkEventHandler(wifi_NetworkUp);
button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
Debug.Print("scan for wireless networks");
WiFi_RS21.WiFiNetworkInfo[] scanResult = wifi.Scan();
unfortunatl he says WiFiNetworkInfo ans Scan both don’t exist in the type.
I am using the following:
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
I’d also ask what SDK and firmware version do you have installed? This is an area that has changed in some of the SDKs, and you may just be using an old SDK and need to upgrade, or you may be targeting a 4.1 app instead of a 4.2 app…
"The type name “WiFiNetworkInfo” does not exist in the type “Gadgeteer.Modules.GHIElectronics.Wifi_RS21”
the second is:
“Gadgeteer.Modules.GHIElectronics.WiFi_RS21” does not contain a definition for “scan” and no extension method “scan” accepting a frist argument of type “Gadgeteer.Modules.GHIElectronisc.Wifi_RS21” could be found (are you missing a using directive or an assembly reference"
However I keep having the same issue, also I have use the other example codes. It seems like I’m missing an assembly or something, but can’t find what.
(sorry for my ignorant questions, I’m new with gadgeteering)
I’m trying to setup a wifi connectiong with a WiFi_RR21 module on a FEZ spider based on some simple example codes online.
However I qucikly get an error:
I the programStarted() I have the following:
wifi.UseDHCP();
wifi.NetworkDown += new GTM.Module.NetworkModule.NetworkEventHandler(wifi_NetworkDown);
wifi.NetworkUp += new GTM.Module.NetworkModule.NetworkEventHandler(wifi_NetworkUp);
button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
Debug.Print(“scan for wireless networks”);
WiFi_RS21.WiFiNetworkInfo[] scanResult = wifi.Scan();
unfortunatl he says WiFiNetworkInfo ans Scan both don’t exist in the type.
I am using the GHI NETMF v4.2 (dated 04-30-2013)
Are you using 4.2 firmware on your Spider and NOT 4.1?
////
The link I gave works with version 4.2. I and many others have used it. I used it with a Fez Spider running 4.2.9 firmware.
As far as I know, wifi.NetworkDown and wifi.NetworkUp only are used with version 4.1. and not for version 4.2.
@ EhvIne - Check the GHI Premium documentation for the WifFi Scan Method. It shows a clickable link to the WifiNetworkInformation class. Click it. You will then see the necessary workspace and and reference info.
I ‘think’ this is correct. If not… I’m sure someone will correct me!
I added a image that shows references I used in a old 4.1 WiFi RS21 application
(Ignore the yellow warning symbols. They show because I do not have the 4.1 SDK available. The references are valid)