for EthernetInterface library compatibility.\\ ** Unoffical fix. may be a problem. **
Dependents: SNIC-httpclient-example SNIC-ntpclient-example
Fork of SNICInterface 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;
ban4jp -
