bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
Diff: TcpServerToFlash.cpp
- Revision:
- 5:c9a908749d4c
- Parent:
- 2:45b351b4fc2a
- Child:
- 6:5cf50f29a81f
diff -r 7abcf4543282 -r c9a908749d4c TcpServerToFlash.cpp --- a/TcpServerToFlash.cpp Sat Apr 11 17:11:38 2020 +0000 +++ b/TcpServerToFlash.cpp Sun Apr 12 17:59:57 2020 +0000 @@ -120,17 +120,18 @@ if(n>0) { - printf("PRIJEM: primljeno = %d bajtova \n\r",n); -// {int i; for(i=0;i<n;i++) printf("%c", inbuff[i] );} -// printf("\n\r"); -// fflush(stdout); + printf("PRIJEM tcpSOCKET: primljeno = %d bajtova \n\r",n); + {int i; for(i=0;i<n;i++) printf("%c", inbuff[i] );} + printf("\n\r"); + fflush(stdout); } p_soc->set_timeout(-1); n = p_soc->send(sendHTTPheader, strlen(sendHTTPheader)); printf("PREDAJA HTTPheader: posato bajtova = %d, %d \n\r", n, strlen(sendHTTPheader)); - auto c = getHTML_free( ); + extern C_HTMLparse *gpc_html; + auto c = gpc_html->getHTML_free( ); n = p_soc->send(c, strlen(c)); free(c); printf("PREDAJA dataBuffer: posato bajtova = %d, %d \n\r", n, strlen(c));