Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
Revision 10:09a1dd3fbd3d, committed 2013-10-10
- Comitter:
- Kojto
- Date:
- Thu Oct 10 07:17:17 2013 +0200
- Parent:
- 9:48842d8a1285
- Child:
- 11:991f6c2444e9
- Commit message:
- Case 1 (FTC set), connection policy 0,1,1
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 09 19:43:06 2013 +0000
+++ b/main.cpp Thu Oct 10 07:17:17 2013 +0200
@@ -140,30 +140,23 @@
switch (c)
{
case '0':
- if (!user_info.FTC)
- {
+ if (!user_info.FTC) {
do_FTC();
wifi._wlan.stop();
+ } else {
+ wifi._wlan.ioctl_set_connection_policy(0, 1, 1);
}
break;
case '1':
printf("Attempting SSID Connection. \r\n");
wifi._wlan.ioctl_set_connection_policy(0, 0, 0);
- wait(1);
- wifi.stop();
- wait(1);
- wifi.start(0);
connect_to_ssid(SSID);
break;
case '2':
printf("Attempting SSID Connection. \r\n");
wifi._wlan.ioctl_set_connection_policy(0, 0, 0);
- wait(1);
- wifi.stop();
- wait(1);
- wifi.start(0);
#ifndef CC3000_TINY_DRIVER
connect_to_ssid(SSID, AP_KEY, AP_SECURITY);
#else


SimpleLink Wi-Fi CC3000