Working Multithreaded HTTP Server using WiFly module. Currently only supporting GET method.

Dependencies:   WiFlyHTTPServer WiflyInterface mbed-rpc mbed-rtos mbed

RTOS Wifly HTTP Server

This sample application demonstrates how the HTTP Server can be used in a multithreaded (RTOS) Environment. However currently only the GET method is supported.

debug.h

Committer:
leihen
Date:
2013-06-26
Revision:
1:40eadac4750b
Parent:
0:9c6ebc97c758

File content as of revision 1:40eadac4750b:

#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__