version_2.0

Dependents:   cc3000_ping_demo_try_2

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
19:9fdf8b4e41bf
Parent:
16:f3676ae62f96
Child:
20:30b6ed7bf8fd
--- 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) {