|
|
@@ -51,11 +51,6 @@ public class WiFiCommunication { |
|
|
|
if (mDeviceRepository == null) { |
|
|
|
this.mDeviceRepository = deviceRepository; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
public void setRecievedSting(String rxString) { |
|
|
|
this.rxString = rxString; |
|
|
|
//mDeviceRepository.getNewReceivedMessage(this.rxString); |
|
|
|
} |
|
|
|
|
|
|
|
public void setNewMessage(String newMessage, boolean isNewMessage){ |
|
|
@@ -124,7 +119,7 @@ public class WiFiCommunication { |
|
|
|
rxString = new String(packet.getData(), 0, packet.getLength()); |
|
|
|
|
|
|
|
if(!previousRxString.equals(rxString)){ |
|
|
|
setRecievedSting(rxString); |
|
|
|
mDeviceRepository.getNewReceivedMessage(rxString); |
|
|
|
|
|
|
|
} |
|
|
|
previousRxString = rxString; |