SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Revision 28:b796031f6519, committed 2014-04-01
- Comitter:
- kishino
- Date:
- Tue Apr 01 07:19:19 2014 +0000
- Parent:
- 27:dcc4f34448f0
- Child:
- 29:6a0ba999597d
- Commit message:
- Modified SNIC_INIT command.
Changed in this revision
SNIC/SNIC_Core.h | Show annotated file Show diff for this revision Revisions of this file |
SNIC_WifiInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SNIC/SNIC_Core.h Mon Mar 31 02:06:14 2014 +0000 +++ b/SNIC/SNIC_Core.h Tue Apr 01 07:19:19 2014 +0000 @@ -103,9 +103,9 @@ /** SNIC_INIT_REQ */ typedef struct { - unsigned char cmd_sid; - unsigned char seq; - unsigned short buf_size; + unsigned char cmd_sid; + unsigned char seq; + unsigned char buf_size[2]; }tagSNIC_INIT_REQ_T; /** SNIC_TCP_CREATE_SOCKET_REQ */
--- a/SNIC_WifiInterface.cpp Mon Mar 31 02:06:14 2014 +0000 +++ b/SNIC_WifiInterface.cpp Tue Apr 01 07:19:19 2014 +0000 @@ -50,7 +50,8 @@ // Make request req.cmd_sid = UART_CMD_SID_SNIC_INIT_REQ; req.seq = mUartRequestSeq++; - req.buf_size = 0x800; + req.buf_size[0] = 0x08; + req.buf_size[1] = 0x00; unsigned char command_array[UART_REQUEST_PAYLOAD_MAX]; unsigned int command_len;