SNIC UART Interface library for Murata Type-YD module
Dependents: WebSocketServerTest
Fork of SNICInterface_mod by
Diff: SNIC/SNIC_UartCommandManager.cpp
- Revision:
- 48:e3a26a484d1c
- Parent:
- 43:d80bbb12ffe6
--- a/SNIC/SNIC_UartCommandManager.cpp Fri Jan 23 09:56:01 2015 +0000 +++ b/SNIC/SNIC_UartCommandManager.cpp Tue Jan 27 07:25:21 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 )