Simple app demonstrating network join feature of WiConnect Host Library.

Dependencies:   WiConnect mbed

Revision:
13:8d2130a74442
Parent:
11:d4a23c59b13d
Child:
14:e0b452b47655
diff -r e06ec86ee190 -r 8d2130a74442 example.cpp
--- a/example.cpp	Sun Sep 07 03:44:06 2014 +0000
+++ b/example.cpp	Sun Sep 07 03:47:42 2014 +0000
@@ -99,6 +99,10 @@
     //-------------------------------------------------------------------------
 
     printf("Joining network: %s....\r\n", NETWORK_SSID);
+    
+    // optional step, set the channel mask to force module to associate to networks on specific channels
+    // this command enables all channels
+    wiconnect.setSetting(SETTING_WLAN_CHANNEL_MASK, (uint32_t)0x3FFF);
 
     if(WICONNECT_FAILED(result, wiconnect.join(NETWORK_SSID, NETWORK_PASSWORD)))
     {