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: mbed_source/XbeeTransmitter.cpp
- Revision:
- 16:f4df01448b59
- Parent:
- 14:cc65f603e659
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed_source/XbeeTransmitter.cpp	Thu Mar 30 17:31:29 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