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.
Fork of WiflyInterface by
Diff: WiflyInterface.cpp
- Revision:
- 34:a22a6343e3d4
- Parent:
- 28:6478767092aa
- Child:
- 35:ce3afc021ec2
diff -r 26a14bc6d90e -r a22a6343e3d4 WiflyInterface.cpp
--- a/WiflyInterface.cpp Tue Jun 28 16:22:27 2016 +0000
+++ b/WiflyInterface.cpp Sun Jul 10 11:13:33 2016 +0000
@@ -2,22 +2,11 @@
//#define DEBUG
#define INFOMESSAGES
-//Debug is disabled by default
-#ifdef DEBUG
-#define DBG(x, ...) pc.printf("[WiflyInterface : DBG] "x"\r\n", ##__VA_ARGS__);
-#define WARN(x, ...) pc.printf("[WiflyInterface : WARN] "x"\r\n", ##__VA_ARGS__);
-#define ERR(x, ...) pc.printf("[WiflyInterface : ERR] "x"\r\n", ##__VA_ARGS__);
-#else
-#define DBG(x, ...)
-#define WARN(x, ...)
-#define ERR(x, ...)
-#endif
+#define WARNMESSAGES
+#define ERRMESSAGES
+#define FUNCNAME "WiflyInterface"
+#include "messages.h"
-#ifdef INFOMESSAGES
-#define INFO(x, ...) pc.printf("[WiflyInterface : INFO] "x"\r\n", ##__VA_ARGS__);
-#else
-#define INFO(x, ...)
-#endif
WiflyInterface::WiflyInterface( PinName tx, PinName rx, PinName reset, PinName tcp_status,
const char * ssid, const char * phrase, Security sec) :
