Tool/software: TI-RTOS
Hi,
I'm working on Tiva C Launchpad, on the Httpget project provided by TI.
I try to get the Timestamp frome my server, but at this part of programme "httpget.c" line 124 :
do { ret = HTTPCli_readResponseBody(&cli, data, sizeof(data), &moreFlag); if (ret < 0) { printError("httpTask: response body processing failed", ret); } len += ret; } while (moreFlag);
the programme execute the loop twice. At the first time, the Buffer data=[49 '1',52 '4',57 '9',57 '9',57 '9'...] It is the good value. But He make a second execution of the loop, so he become data=[97 'a',0 '\x00',57 '9',57 '9',57 '9'...] .... the tow firsts bytes are changed.
Questions :
1- I don't anderstand the second execution of the loop, because I send a small data size.
2- what means those values (97 'a',0 '\x00) ... It's all time the same