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: TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed
Fork of Mbed_MotiVControllerBox by
Diff: devices/Device.cpp
- Revision:
- 0:2279181caaa1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devices/Device.cpp Sat Oct 25 00:11:12 2014 +0000
@@ -0,0 +1,23 @@
+#include "Device.h"
+#include "../MODSERIAL/MODSERIAL.h"
+
+using namespace AjK;
+
+Device::Device(MODSERIAL* ms)
+ :_ms(ms),
+ _msg(0)
+{
+
+}
+
+Device::~Device()
+{
+ delete _ms;
+}
+
+void Device::sendMessage()
+{
+ if(sizeof(_msg)) {
+ _ms->printf("%s;", _msg);
+ }
+}
\ No newline at end of file
