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.
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000.cpp
- Revision:
- 36:1f70a62a160e
- Parent:
- 32:e62d7252401e
- Child:
- 37:3332f57b7f1e
--- a/cc3000.cpp Tue Oct 08 16:38:08 2013 +0200
+++ b/cc3000.cpp Wed Oct 09 20:18:40 2013 +0200
@@ -116,9 +116,7 @@
}
void cc3000::start_smart_config(const uint8_t *smart_config_key) {
- // Reset all the previous configuration
_wlan.ioctl_set_connection_policy(0, 0, 0);
- _wlan.ioctl_del_profile(255);
//Wait until CC3000 is disconected
while (_status.connected == 1)
@@ -128,7 +126,6 @@
}
// Trigger the Smart Config process
-
_wlan.smart_config_set_prefix(cc3000_prefix);
// Start the Smart Config process with AES disabled
_wlan.smart_config_start(0);
@@ -139,7 +136,6 @@
while (_status.smart_config_complete == 0)
{
wait_ms(100);
-
}
DBG_CC("Smartconfig finished");
@@ -164,7 +160,7 @@
wait(2);
// Mask out all non-required events
- _wlan.set_event_mask(HCI_EVNT_WLAN_KEEPALIVE|HCI_EVNT_WLAN_UNSOL_INIT|HCI_EVNT_WLAN_ASYNC_PING_REPORT);
+ _wlan.set_event_mask(HCI_EVNT_WLAN_KEEPALIVE | HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_ASYNC_PING_REPORT);
}
bool cc3000::connect_secure(const uint8_t *ssid, const uint8_t *key, int32_t security_mode) {
