debug version
Dependents: HTTPClient_WiFi_HelloWorld_src
Fork of SNICInterface by
Diff: Socket/Socket.cpp
- Revision:
- 36:f33fcf5975ab
- Parent:
- 34:8c3527b8f44e
- Child:
- 38:f13e4e563d65
--- a/Socket/Socket.cpp Tue Jun 10 10:19:48 2014 +0000 +++ b/Socket/Socket.cpp Thu Jun 19 10:15:47 2014 +0000 @@ -31,6 +31,7 @@ #include <cstring> char gSOCKET_SEND_BUF[2048] __attribute__((section("AHBSRAM1"))); + Socket::Socket() { mSocketID = -1; @@ -190,8 +191,8 @@ printf("resolveHostName payload_buf NULL\r\n"); return -1; } - - unsigned char buf[UART_REQUEST_PAYLOAD_MAX]; + + unsigned char *buf = (unsigned char *)getSocketSendBuf(); unsigned int buf_len = 0; memset( buf, 0, UART_REQUEST_PAYLOAD_MAX ); @@ -215,7 +216,6 @@ unsigned int command_len; command_len = snic_core_p->preparationSendCommand( UART_CMD_ID_SNIC, UART_CMD_SID_SNIC_RESOLVE_NAME_REQ, buf , buf_len, payload_buf->buf, command_array ); - // Send uart command request snic_core_p->sendUart( command_len, command_array );