
ControllerBox directs electromechanical equipment in restaurants to display information.
Dependencies: TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed
Fork of Mbed_MotiVControllerBox by
Diff: library/Device.cpp
- Revision:
- 3:21c8adb97c8f
- Parent:
- 2:ad4509a9d051
- Child:
- 4:8155d4d6a193
diff -r ad4509a9d051 -r 21c8adb97c8f library/Device.cpp --- a/library/Device.cpp Tue Dec 02 20:51:18 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -#include "Device.h" -#include <stdlib.h> - - - -using namespace std; - -Device::Device() - :id(0) {} - -Device::Device(int id) - :id(id) {} - -Device::~Device() -{ - -} - -Device::Device(const Device& d) -{ - id = d.id; -} - -Device& Device::operator=(const Device& d) -{ - id = d.id; - return *this; -} - -int Device::getId() const -{ - return id; - } - -Device::mCommand Device::makeCommand(int cmd, int value) -{ - mCommand rc; - rc.id = id; - rc.cmd = cmd; - rc.val = value; - rc.delim = DELIMITER; - return rc; -} \ No newline at end of file