ACKme
/
wiconnect-join_example
Simple app demonstrating network join feature of WiConnect Host Library.
Revision 13:8d2130a74442, committed 2014-09-07
- Comitter:
- dan_ackme
- Date:
- Sun Sep 07 03:47:42 2014 +0000
- Parent:
- 12:e06ec86ee190
- Child:
- 14:e0b452b47655
- Commit message:
- added channel mask api call
Changed in this revision
example.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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))) {