Wifi RS9110 for 4.3 network

Any examples of getting wifi working using 4.3?

Is 4.3 a supported version? Is it stable for commercial use?

The existing examples appear to be for 4.2.

@ anthonys -

Is 4.3 a supported version? Yes

Is it stable for commercial use? Yes but initialization has to be done during startup (if timing is critical).

Thanks David/. Where is example code for wifi? The examples only appear to apply to 4.2 sdk?

Not sure if there is a correct sample online but i did copy some (maybe not all) code from my project to show you the main parts.




		Wifi = new WiFiRS9110(SPI.SPI_module.SPI2,GHI.Pins.G120.P1_27 , GHI.Pins.G120.P2_13, GHI.Pins.G120.P1_28, 4000);

		NetworkChange.NetworkAddressChanged +=NetworkChange_NetworkAddressChanged; 
		NetworkChange.NetworkAvailabilityChanged +=NetworkChange_NetworkAvailabilityChanged; 
		
			
		if (Wifi.Opened == false )
		{
			Wifi.Open();
		}
		
		//only when it's actualy open !!!
		if (Wifi.Opened  == true)
		{
			if (!Wifi.NetworkInterface.IsDhcpEnabled)
			{
				// always use DHCP on WIFI
				Wifi.NetworkInterface.EnableDhcp();
				Wifi.NetworkInterface.EnableDynamicDns();   
			}  
			
			// scan to see if SSID is availible    
			GHI.Networking.WiFiRS9110.NetworkParameters[] WifiScanResult = Wifi.Scan();

			for (int i = 0; i < WifiScanResult.Length; i++)
			{
				if (WifiScanResult[i].Ssid == Wifi_SSID)
				{
					SysLogOut("", "Join Wifi " + Wifi_SSID + " -" + WifiScanResult[i].Rssi.ToString() + "db NT" + WifiScanResult[i].NetworkType.ToString() + "SM" + WifiScanResult[i].SecurityMode.ToString() + "CN" + WifiScanResult[i].Channel.ToString()) ;
					Wifi.Join(WifiScanResult[i].Ssid , Wifi_Key);
					break;
				}
			}
		}
		
		static void NetworkChange_NetworkAvailabilityChanged(object sender, Microsoft.SPOT.Net.NetworkInformation.NetworkAvailabilityEventArgs e)
        {
            Debug.Print("Network has changed! ");
        }

        static void NetworkChange_NetworkAddressChanged(object sender, EventArgs e)
        {
            Debug.Print("New address for the Network Interface ");
		}		

1 Like