Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 4:567d72fb3d84
- Parent:
- 1:24cff46332de
- Child:
- 16:22f072355a2c
--- a/main.cpp Mon Aug 01 17:00:25 2016 +0100 +++ b/main.cpp Tue Aug 02 12:45:18 2016 +0100 @@ -2,11 +2,25 @@ #include "rtos.h" #include "NanostackInterface.h" +#if MBED_CONF_APP_TRACE +#include "mbed-trace/mbed_trace.h" + +void trace_printer(const char* str) { + printf("%s\r\n", str); +} +#endif // MBED_CONF_APP_TRACE + LoWPANNDInterface mesh; +//ThreadInterface mesh; Serial output(USBTX, USBRX); int main() { + +#if MBED_CONF_APP_TRACE + mbed_trace_init(); + mbed_trace_print_function_set(trace_printer); +#endif output.baud(115200); printf("\r\n\r\nConnecting...\r\n");