* the cases where SD is not present or page not found, using embedded pages.
* Quering from browser the /status page, the server return a json dictionary where are store
* some board status info, like board temperature, up-time, etc.
+ *
+ * notest: avr
*/
#include "http.h"
char *p = strstr(revc_buf, "GET");
if (p)
{
- //Find the end of the page request.
+ /* Find the end of the page request. */
char *stop = strstr(revc_buf, "HTTP");
if (!stop)
{
return;
}
- //skip the "/" in get string request
+ /* skip the "/" in get string request */
p += sizeof("GET") + 1;
while (p != stop)
}
}
- //Trail white space in the string.
+ /* Trail white space in the string. */
while ( --i >= 0 )
if (name[i] != ' ' && name[i] != '\t' && name[i] != '\n')
break;