Fork of HttpServer_snapshot_mbed-os library

Fork of HttpServer_snapshot_mbed-os by Renesas

Files at this revision

API Documentation at this revision

Comitter:
fxanhkhoa
Date:
Sat Sep 30 08:36:29 2017 +0000
Parent:
15:371fbad587ed
Commit message:
Renesas GR Peach ASEAN Contest

Changed in this revision

HTTPServer.h Show annotated file Show diff for this revision Revisions of this file
diff -r 371fbad587ed -r 13f082bef9a9 HTTPServer.h
--- a/HTTPServer.h	Fri Jun 23 11:34:54 2017 +0000
+++ b/HTTPServer.h	Sat Sep 30 08:36:29 2017 +0000
@@ -6,6 +6,7 @@
 #ifdef _DEBUG_ALL
 #include <stdio.h>
 #include <stdarg.h>
+Serial pc(USBTX, USBRX);
 static inline void http_server_debug_print(const char *format, ...) {
     va_list args;
     va_start(args, format);
@@ -201,6 +202,7 @@
 
     for (;;) {
         http_server_debug_print("**Start Loop** \r\n");
+        pc.printf("Sta\n");
         if (t >= 0) {
             if(server.accept(&clients[t])==0) {
                 // fork child process
@@ -227,6 +229,7 @@
             } else {
                 Thread::wait(10);
             }
+            pc.printf("end\n");
         }
 
         t = -1;