I have tried to run the WIFI_HTTP_DEMO example. It does not work!!!
The microcontroller I am using is an 18F45K22 running at 20MHz with PLL disabled. The microcontroller is configured correctly and runs every other program except WIFI_HTTP_DEMO.
As you can imagine, this is a source of great frustration for me. I have made an effort to debug the code myself by disabling certain parts of it. The result of this is that everything is in order until I try to scanSSID();
Code: Select all
response = 1;
while(response != 0)
response = Net_Wireless_MCW1001_SetMode(_NET_WIRELESS_MCW1001_CP_1, _NET_WIRELESS_MCW1001_MODE_INFRASTRUCTURE); // Set "Connection Profile 1" mode (Ad-Hoc mode)
and then I proceed to SET CHANNEL, SECURITY, ETC... All of these seem to work fine.
Things only begin to go south after:
Code: Select all
while(1)
{
response = Net_Wireless_MCW1001_ScanStart(255, &numOfScanRes); //SCAN FOR NETWORKS
if(response == 0)
break;
Delay_ms(500);
}
Code: Select all
for(i = 1; i <= numOfScanRes; i++) {
response = Net_Wireless_MCW1001_GetScanResult(i);
strncpy(strTmp, Net_Wireless_MCW1001_ScanResult.SSID, Net_Wireless_MCW1001_ScanResult.SSIDLength);
}