cc3000 hostdriver with the mbed socket interface
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: cc3000.cpp
- Revision:
- 19:9fdf8b4e41bf
- Parent:
- 16:f3676ae62f96
- Child:
- 20:30b6ed7bf8fd
diff -r 7e22775eadb9 -r 9fdf8b4e41bf cc3000.cpp
--- a/cc3000.cpp Wed Oct 02 21:57:28 2013 +0000
+++ b/cc3000.cpp Thu Oct 03 09:49:03 2013 +0200
@@ -141,9 +141,9 @@
wait_ms(100);
}
-
+
DBG_CC("Smartconfig finished");
-
+
#ifndef CC3000_UNENCRYPTED_SMART_CONFIG
// create new entry for AES encryption key
_nvmem.create_entry(NVMEM_AES128_KEY_FILEID, 16);
@@ -204,9 +204,9 @@
/* timeout 10 seconds */
if (t.read_ms() > 10000){
ret = false;
-
+
DBG_CC("Connection to AP failed");
-
+
break;
}
}
@@ -259,12 +259,12 @@
return _status.smart_config_complete;
}
-void cc3000::get_mac_address(uint8_t address[6]) {
- _nvmem.get_mac_address(address);
+uint8_t cc3000::get_mac_address(uint8_t address[6]) {
+ return _nvmem.get_mac_address(address);
}
-void cc3000::set_mac_address(uint8_t address[6]) {
- _nvmem.set_mac_address(address);
+uint8_t cc3000::set_mac_address(uint8_t address[6]) {
+ return _nvmem.set_mac_address(address);
}
void cc3000::get_user_file_info(uint8_t *info_file, size_t size) {
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System