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.
Dependencies: libmDot-mbed5 ISL29011
Diff: examples/src/dot_util.cpp
- Revision:
- 33:15ea8f985c54
- Parent:
- 31:b1d5811e3d5d
--- 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;
}