Working sample implementation for the EthernetInterface HTTPServer.
Dependencies: EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed
Sample application which shows basic functionality of my HTTPServer library.
Import libraryHTTPServer
Single instance HTTP Server using new Ethernet Interface.
.
Diff: debug.h
- Revision:
- 4:fdd7369eeebe
- Parent:
- 3:23bcc90d6587
- Child:
- 5:c5c2f7026638
--- a/debug.h Sat Aug 17 15:32:16 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef __DEBUG_H__ -#define __DEBUG_H__ - - -#ifdef DEBUG -#define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); -#define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); -#define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); -#else -#define INFO(x, ...) -#define WARN(x, ...) -#define ERR(x, ...) -#endif - - -#endif // __DEBUG_H__#ifndef __DEBUG_H__