Fix compilation in DEBUG mode
This commit is contained in:
@@ -139,7 +139,7 @@ void MqttBroker::onClient(void* broker_ptr, AsyncClient* client)
|
||||
MqttBroker* broker = static_cast<MqttBroker*>(broker_ptr);
|
||||
|
||||
broker->addClient(new MqttClient(broker, client));
|
||||
debug("New client #" << broker->clients->size());
|
||||
debug("New client #" << broker->clients.size());
|
||||
}
|
||||
|
||||
void MqttBroker::loop()
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#pragma once
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <ESPAsyncTCP.h>
|
||||
#include <vector>
|
||||
#include <set>
|
||||
@@ -7,6 +6,8 @@
|
||||
#include "StringIndexer.h"
|
||||
#include <MqttStreaming.h>
|
||||
|
||||
// #define TINY_MQTT_DEBUG
|
||||
|
||||
#ifdef TINY_MQTT_DEBUG
|
||||
#define debug(what) { Serial << __LINE__ << ' ' << what << endl; delay(100); }
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user