Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.

Revision:
0:8e83b9448758
Child:
9:0ce800923eda
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Indication/UDPReceivedIndication.cpp	Tue Feb 03 21:24:15 2015 +0000
@@ -0,0 +1,46 @@
+#include "UDPReceivedIndication.h"
+
+using namespace SmartLabMuRata;
+
+UDPReceivedIndication::UDPReceivedIndication(Payload * payload)
+    : Payload(payload)
+{
+    receiveLength = GetData()[9] << 8 | GetData()[10];
+}
+
+char UDPReceivedIndication::GetServerSocketID()
+{
+    return GetData()[2];
+}
+
+IPAddress UDPReceivedIndication::GetRemoteIP()
+{
+    IPAddress ip;
+    ip.SetValue(GetData(), 3);
+    return ip;
+}
+
+int UDPReceivedIndication::GetRemotePort()
+{
+    return GetData()[7] << 8 | GetData()[8];
+}
+
+int UDPReceivedIndication::GetPayloadLength()
+{
+    return receiveLength;
+}
+
+char UDPReceivedIndication::GetPayload(int index)
+{
+    return GetData()[index + PAYLOAD_OFFSET];
+}
+
+const char * UDPReceivedIndication::GetPayload()
+{
+    return GetData() + PAYLOAD_OFFSET;
+}
+
+int UDPReceivedIndication::GetPayloadOffset()
+{
+    return PAYLOAD_OFFSET;
+}
\ No newline at end of file