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: source/XbeeTransmitter.cpp
- Revision:
- 14:cc65f603e659
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/source/XbeeTransmitter.cpp Wed Mar 29 15:56:01 2017 +0000
@@ -0,0 +1,16 @@
+#include "RealXbeeTransmitter.hpp"
+
+RealXbeeTransmitter::RealXbeeTransmitter()
+{
+
+}
+
+void RealXbeeTransmitter::transmit(const std::vector<uint8_t>& bytes)
+{
+ char message[message_size];
+ for(int i=0; i<message_size; i++)
+ {
+ message[i] = bytes.at(i);
+ }
+ send_message_via_xbee(message, message_size);
+}
\ No newline at end of file