modified for Doug Ansons ThermostatDemo: single change that turns off the debugging information by default.

Dependents:   df-2013-thermostat-handson df-2013-minihack-thermostat-complete df-2013-minihack-thermostat df-2013-thermostat-remotes

Fork of WebSocketClient by Doug Anson

Revision:
9:8ee61b912743
Parent:
8:4daf215761cb
--- a/Websocket.cpp	Thu Jun 06 05:53:13 2013 +0000
+++ b/Websocket.cpp	Fri Jun 28 19:36:04 2013 +0000
@@ -4,17 +4,19 @@
 #define MAX_TRY_READ 10
 
 //Debug is disabled by default
-#if 1
+#if 0
 #define DBG(x, ...) std::printf("[WebSocket : DBG]"x"\r\n", ##__VA_ARGS__); 
 #define WARN(x, ...) std::printf("[WebSocket : WARN]"x"\r\n", ##__VA_ARGS__); 
 #define ERR(x, ...) std::printf("[WebSocket : ERR]"x"\r\n", ##__VA_ARGS__); 
+#define INFO(x, ...) printf("[WebSocket : INFO]"x"\r\n", ##__VA_ARGS__); 
 #else
 #define DBG(x, ...) 
 #define WARN(x, ...)
 #define ERR(x, ...) 
+#define INFO(x, ...) 
 #endif
 
-#define INFO(x, ...) printf("[WebSocket : INFO]"x"\r\n", ##__VA_ARGS__); 
+
 
 Websocket::Websocket(char * url) {
     fillFields(url);