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: IFTTT_Ethernet_LM61
Fork of IFTTT by
Diff: ifttt.cpp
- Revision:
- 5:bef11de60a9b
- Parent:
- 3:c916e13a269a
- Child:
- 6:15c6c9f87c32
diff -r c916e13a269a -r bef11de60a9b ifttt.cpp
--- a/ifttt.cpp Mon Jul 13 17:46:37 2015 +0000
+++ b/ifttt.cpp Tue Jul 14 21:44:51 2015 +0000
@@ -18,7 +18,7 @@
#include "ifttt.h"
#include <string>
-#if 1
+#if 0
#define DBG(x, ...) printf("[IFTTT : DBG]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__);
#define WARN(x, ...) printf("[IFTTT : WARN]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__);
#define ERR(x, ...) printf("[IFTTT : ERR]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__);
@@ -29,7 +29,7 @@
#endif
#if 1
-#define INFO(x, ...) printf("[IFTTT : INFO]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__);
+#define INFO(x, ...) printf("[IFTTT : INFO]"x" \r\n",##__VA_ARGS__);
#else
#define INFO(x, ...)
#endif
@@ -213,5 +213,8 @@
break;
}
DBG("Sending Data return code : %d",ret);
+ if(ret){
+ INFO("Successfully triggered event: '%s' with v1='%s', v2='%s', v3='%s' !",eventName,v1,v2,v3);
+ }
return ret;
}
