- public byte[] sendDataToLocalDevice(Long deviceId, byte[] data) {
- if (deviceId == t1.getId()) {
- return t1.localCommInput(data);
- } else if (deviceId == t2.getId()) {
- return t2.localCommInput(data);
- }
- else {
+ public byte[] sendDataToLocalDevice(Long deviceId, byte[] data) throws InterruptedException{
+ System.out.println("Passing Locally");
+
+ if (deviceId == t1.getMachineId()) {
+ // return t1.localCommInput(data);
+ } else if (deviceId == t2.getMachineId()) {
+ // return t2.localCommInput(data);
+ } else {