Webcam Server.
Dependencies: uvchost FatFileSystem mbed HTTPServer NetServicesMin
Diff: WebcamHandler.h
- Revision:
- 1:7a4f2c038803
- Parent:
- 0:2b4ea8a138e5
--- a/WebcamHandler.h Wed Jun 06 11:47:06 2012 +0000 +++ b/WebcamHandler.h Tue Aug 14 03:42:12 2012 +0000 @@ -28,7 +28,7 @@ #include "mbed.h" struct stimage { - char* buf; + uint8_t* buf; int len; }; @@ -37,7 +37,7 @@ public: WebcamHandler(const char* rootPath, const char* path, TCPSocket* pTCPSocket); virtual ~WebcamHandler(){} - static void setImage(char* buf, int len, int cam = 0); + static void setImage(uint8_t* buf, int len, int cam = 0); static bool busy() { return m_busy; } //protected: static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTCPSocket) { return new WebcamHandler(rootPath, path, pTCPSocket); } //if we ever could do static virtual functions, this would be one