Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack
Diff: examples/src/dot_util.cpp
- Revision:
- 33:15ea8f985c54
- Parent:
- 31:b1d5811e3d5d
- Child:
- 42:20f6b29a9903
--- a/examples/src/dot_util.cpp Thu Sep 13 15:32:55 2018 -0500 +++ b/examples/src/dot_util.cpp Wed Apr 24 12:50:08 2019 +0000 @@ -708,7 +708,7 @@ #endif } -void send_data(std::vector<uint8_t> data) { +int send_data(std::vector<uint8_t> data) { int32_t ret; ret = dot->send(data); @@ -717,5 +717,7 @@ } else { logInfo("successfully sent data to %s", dot->getJoinMode() == mDot::PEER_TO_PEER ? "peer" : "gateway"); } + + return ret; }