SNICInterface for ThingPlug Example

Dependents:   ThingPlug_WiFi_Example ThingPlug_WiFi_Example_2

Fork of SNICInterface by muRata

Revision:
52:29b4d0adddf3
Parent:
43:d80bbb12ffe6
--- a/SNIC/SNIC_UartCommandManager.cpp	Tue Mar 31 02:59:47 2015 +0000
+++ b/SNIC/SNIC_UartCommandManager.cpp	Tue Mar 31 03:12:35 2015 +0000
@@ -234,6 +234,8 @@
     con_info_p->is_received   = false;
     con_info_p->is_accept     = true;
     con_info_p->parent_socket = payload_p[2];
+    con_info_p->from_ip   = ((payload_p[4] << 24) | (payload_p[5] << 16) | (payload_p[6] << 8) | payload_p[7]);
+    con_info_p->from_port = ((payload_p[8] << 8)  | payload_p[9]);
 }
 
 void C_SNIC_UartCommandManager::bufferredUDPPacket( unsigned char *payload_p, int payload_len )