IFTTT IP -> URL

Dependents:   IFTTT_Ethernet_LM61

Fork of IFTTT by Austin Blackstone

Revision:
5:bef11de60a9b
Parent:
3:c916e13a269a
Child:
6:15c6c9f87c32
--- 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;
 }