version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Revision 46:ca8c234997c0, committed 2013-11-10
- Comitter:
- Kojto
- Date:
- Sun Nov 10 21:41:44 2013 +0100
- Parent:
- 45:50ab13d8f2dc
- Child:
- 47:e9d12b82813e
- Commit message:
- ping reports masking removal
Changed in this revision
| cc3000.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
