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.
Dependencies: ESP8266Interface HTTPClient-SSL WebSocketClient mbed-rtos mbed
Fork of ESP8266_HTTP_HelloWorld by
dbg.h@2:44dca280b049, 2015-04-20 (annotated)
- Committer:
- michaeljkoster
- Date:
- Mon Apr 20 20:29:26 2015 +0000
- Revision:
- 2:44dca280b049
- Parent:
- 0:6a891da014a3
Test program for ESP8266
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| michaeljkoster | 0:6a891da014a3 | 1 | #ifndef DEBUG_H |
| michaeljkoster | 0:6a891da014a3 | 2 | #define DEBUG_H |
| michaeljkoster | 0:6a891da014a3 | 3 | |
| michaeljkoster | 0:6a891da014a3 | 4 | #include "nsdl_support.h" |
| michaeljkoster | 0:6a891da014a3 | 5 | #include "mbed.h" |
| michaeljkoster | 0:6a891da014a3 | 6 | |
| michaeljkoster | 0:6a891da014a3 | 7 | //Debug is disabled by default |
| michaeljkoster | 0:6a891da014a3 | 8 | #define DEBUG 1 |
| michaeljkoster | 0:6a891da014a3 | 9 | |
| michaeljkoster | 0:6a891da014a3 | 10 | #if (DEBUG) |
| michaeljkoster | 0:6a891da014a3 | 11 | extern Serial pc; |
| michaeljkoster | 0:6a891da014a3 | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| michaeljkoster | 0:6a891da014a3 | 13 | #else |
| michaeljkoster | 0:6a891da014a3 | 14 | #define NSDL_DEBUG(x, ...) |
| michaeljkoster | 0:6a891da014a3 | 15 | #endif |
| michaeljkoster | 0:6a891da014a3 | 16 | |
| michaeljkoster | 0:6a891da014a3 | 17 | #endif |
