rename files
[iotcloud.git] / version2 / src / C / LocalComm.cpp
1 #include "LocalComm.h"
2 #include "Error.h"
3 #include "Table.h"
4
5 Array<char> *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array<char> *data) {
6         printf("Passing Locally\n");
7
8         if (deviceId == t1->getMachineId()) {
9                 // return t1.localCommInput(data);
10         } else if (deviceId == t2->getMachineId()) {
11                 // return t2.localCommInput(data);
12         } else {
13                 throw new Error("Cannot send to deviceId using this local comm");
14         }
15
16         return new Array<char>((uint32_t)0);
17 }