HttpServer Library for "mbed-os" which added a snapshot handler.

Dependents:   GR-PEACH-webcam GR-Boards_WebCamera GR-Boards_WebCamera GR-Boards_WebCamera

Fork of HttpServer_snapshot by Renesas

Revision:
13:d3571c244759
Parent:
11:0700755d64ae
Child:
14:d3dc6ad09790
--- a/Handler/SnapshotHandler.h	Tue Jun 06 01:39:39 2017 +0000
+++ b/Handler/SnapshotHandler.h	Wed Jun 07 05:53:36 2017 +0000
@@ -36,6 +36,10 @@
         callback_func_req = fptr;
     }
 
+    static void attach_req(int(*fptr)(const char* rootPath, const char ** pp_data)) {
+        callback_func_req2 = fptr;
+    }
+
 //protected:
     static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTCPSocket) { return new SnapshotHandler(rootPath, path, pTCPSocket); } //if we ever could do static virtual functions, this would be one
 
@@ -49,6 +53,7 @@
 
 private:
     static int (*callback_func_req)(const char ** pp_data);
+    static int (*callback_func_req2)(const char* rootPath, const char ** pp_data);
     static Semaphore req_sem;
     const char * send_data_buf;
     int send_size;