use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/Logger.h
- Revision:
- 33:1d0b855df5a5
- Parent:
- 0:1f1f55e73248
--- a/mbed-connector-interface/Logger.h Tue Jun 14 19:04:08 2016 +0000 +++ b/mbed-connector-interface/Logger.h Tue Jun 14 19:29:30 2016 +0000 @@ -23,14 +23,20 @@ #ifndef __LOGGER_H__ #define __LOGGER_H__ -// mbed API -#include "mbed.h" +// Configuration +#include "mbed-connector-interface/mbedConnectorInterface.h" // Support for std args #include <stdarg.h> -// Configuration -#include "mbed-connector-interface/mbedConnectorInterface.h" +// mbed support +#if defined(MCI_USE_YOTTA) + // mbed support + #include "mbed-drivers/mbed.h" +#else + // mbed support + #include "mbed.h" +#endif // logging macro #define log(x, ...) logIt(x"\r\n",##__VA_ARGS__) @@ -63,7 +69,6 @@ @param ... input (variable arguments to display) */ void logIt(const char *format, ...); -protected: private: Serial *m_pc;