Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack
Diff: examples/inc/RadioEvent.h
- Revision:
- 21:09d05faf0e13
- Parent:
- 14:19fae4509473
- Child:
- 34:f6486829a451
--- a/examples/inc/RadioEvent.h Tue May 16 10:47:10 2017 -0500 +++ b/examples/inc/RadioEvent.h Fri Jun 09 08:31:21 2017 -0500 @@ -63,12 +63,9 @@ logDebug("Rx %d bytes", info->RxBufferSize); if (info->RxBufferSize > 0) { - // print RX data as hexadecimal - //printf("Rx data: %s\r\n", mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str()); - - // print RX data as string + // print RX data as string and hexadecimal std::string rx((const char*)info->RxBuffer, info->RxBufferSize); - printf("Rx data: %s\r\n", rx.c_str()); + printf("Rx data: %s [%s]\r\n", rx.c_str(), mts::Text::bin2hexString(info->RxBuffer, info->RxBufferSize).c_str()); } } }