Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WiFlyHTTPServerSample MultiThreadingHTTPServer
Diff: Handler/RpcHandler.cpp
- Revision:
- 13:93ff322420b0
- Parent:
- 9:c2a1462b9b71
--- a/Handler/RpcHandler.cpp Wed Jun 05 23:39:24 2013 +0000 +++ b/Handler/RpcHandler.cpp Wed Jun 26 21:12:42 2013 +0000 @@ -4,23 +4,15 @@ #include "mbed_rpc.h" -#define _DEBUG 0 +#define DEBUG +#include "debug.h" -#if (_DEBUG && !defined(TARGET_LPC11U24)) -#define INFO(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__); -#define WARN(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__); -#define ERR(x, ...) std::printf("[HTTPRpcHandler : DBG]"x"\r\n", ##__VA_ARGS__); -#else -#define INFO(x, ...) -#define WARN(x, ...) -#define ERR(x, ...) -#endif RPC rpc("rpc"); -HTTPRpcRequestHandler::HTTPRpcRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg, TCPSocketConnection& Tcp) - : HTTPRequestHandler(Msg, Tcp) +HTTPRpcRequestHandler::HTTPRpcRequestHandler(const char* rootPath, const char* localPath, HTTPConnection::HTTPMessage& Msg) + : HTTPRequestHandler(Msg) { m_rootPath = rootPath; m_localPath = localPath;