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.

Revision:
12:8dc9761210c1
Parent:
11:c49cf952d67d
Child:
13:09e0b4f5a9e1
--- a/XBee/XBee.cpp	Sat Mar 24 19:50:19 2018 +0100
+++ b/XBee/XBee.cpp	Sun Mar 25 16:54:52 2018 +0200
@@ -13,6 +13,13 @@
 #include "XBeeLib.h"
 #include "FrameHandlers/FH_ModemStatus.h"
 
+#if defined(ENABLE_THREAD_SAFE_LOGGING)
+    
+Thread s_thread_for_logging_event_queue;
+EventQueue s_logging_event_queue;
+
+#endif
+
 /* States for the state machine that processes incoming data on the serial port */
 #define WAITING_FOR_START_FRAME (0)
 #define WAITING_FOR_LENGTH_MSB  (1)
@@ -190,6 +197,12 @@
         _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;
 }