Digi XBeeLib fixed for NonCopyable issue

Dependents:   XBeeZB_Receive_Data

Fork of XBeeLib by Digi International Inc.

This lib fixes NonCopyable<T> issues of Digi XBeeLib. Also, lib has been reworked in order to make it RTOS-aware, overcoming several others issues due to stdio Mutex operations.

Files at this revision

API Documentation at this revision

Comitter:
Lorenzo Maiorfi
Date:
Sun Apr 08 08:01:55 2018 +0200
Parent:
12:8dc9761210c1
Commit message:
Disabled reset procedure in XBee::init() method in order to overcome some "nasty" effects on S2C modules.

Changed in this revision

XBee/XBee.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8dc9761210c1 -r 09e0b4f5a9e1 XBee/XBee.cpp
--- a/XBee/XBee.cpp	Sun Mar 25 16:54:52 2018 +0200
+++ b/XBee/XBee.cpp	Sun Apr 08 08:01:55 2018 +0200
@@ -135,7 +135,11 @@
 
     _initializing = true;
 
-    const unsigned int max_reset_retries = 3;
+#if defined(ENABLE_THREAD_SAFE_LOGGING)    
+    s_thread_for_logging_event_queue.start(callback(&s_logging_event_queue, &EventQueue::dispatch_forever));
+#endif
+
+    /*const unsigned int max_reset_retries = 3;
     RadioStatus reset_status;
     for (unsigned int i = 0; i < max_reset_retries; i++) {
         reset_status = device_reset();
@@ -145,7 +149,7 @@
     }
     if (reset_status != Success) {
         return reset_status;
-    }
+    }*/
 
     /* Check if radio is in API1 or API2 _mode */
     cmd_resp = get_param("AP", &var32);
@@ -197,12 +201,6 @@
         _modem_status_handler->process_frame_data(&frame);
     }
 
-#if defined(ENABLE_THREAD_SAFE_LOGGING)
-    
-    s_thread_for_logging_event_queue.start(callback(&s_logging_event_queue, &EventQueue::dispatch_forever));
-
-#endif
-
     return Success;
 }