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