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:
- 46:ca8c234997c0
- Parent:
- 45:50ab13d8f2dc
- Child:
- 47:a63fe1a4f568
--- a/cc3000.cpp Wed Nov 06 17:56:25 2013 +0100
+++ b/cc3000.cpp Sun Nov 10 21:41:44 2013 +0100
@@ -95,7 +95,7 @@
_wlan.start(0);
_status.enabled = 1;
- _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE | HCI_EVNT_WLAN_ASYNC_PING_REPORT);
+ _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE);
}
void cc3000::init(const char *ip, const char *mask, const char *gateway) {
@@ -105,7 +105,7 @@
_wlan.start(0);
_status.enabled = 1;
- _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE | HCI_EVNT_WLAN_ASYNC_PING_REPORT);
+ _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE);
}
int cc3000::connect(unsigned int timeout_ms) {
@@ -292,7 +292,7 @@
_status.enabled = 1;
// 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);
}
bool cc3000::connect_secure(const uint8_t *ssid, const uint8_t *key, int32_t security_mode) {
@@ -368,7 +368,7 @@
void cc3000::start(uint8_t patch) {
_wlan.start(patch);
_status.enabled = 1;
- _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE | HCI_EVNT_WLAN_ASYNC_PING_REPORT);
+ _wlan.set_event_mask(HCI_EVNT_WLAN_UNSOL_INIT | HCI_EVNT_WLAN_KEEPALIVE);
}
void cc3000::stop(void) {
