Better debug defines
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <Streaming.h>
|
#include <Streaming.h>
|
||||||
|
|
||||||
#if 1
|
#if TINY_MQTT_DEBUG
|
||||||
#define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); }
|
#define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); }
|
||||||
#else
|
#else
|
||||||
#define debug(what) {}
|
#define debug(what) {}
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "StringIndexer.h"
|
#include "StringIndexer.h"
|
||||||
|
|
||||||
|
#ifndef TINY_MQTT_DEBUG
|
||||||
|
#define TINY_MQTT_DEBUG 0
|
||||||
|
#endif
|
||||||
|
|
||||||
enum MqttError
|
enum MqttError
|
||||||
{
|
{
|
||||||
MqttOk = 0,
|
MqttOk = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user