Minor changes

This commit is contained in:
hsaturn
2021-09-19 12:40:04 +02:00
parent b58f3e3d67
commit 4dcc6a6cf4
6 changed files with 253 additions and 3 deletions

View File

@@ -38,6 +38,7 @@
4. Simple _FMT mechanism ala printf, but without the typeunsafetyness
and no internal buffers for replaceable stream printing
*/
#pragma once
#ifndef ARDUINO_STREAMING
#define ARDUINO_STREAMING

View File

@@ -84,7 +84,7 @@ void MqttClient::connect(MqttBroker* parentBroker)
void MqttClient::connect(std::string broker, uint16_t port, uint16_t ka)
{
debug("cnx: closing");
debug("MqttClient::connect");
keep_alive = ka;
close();
if (client) delete client;

View File

@@ -235,7 +235,7 @@ class MqttClient
MqttError publishIfSubscribed(const Topic& topic, MqttMessage& msg);
void clientAlive(uint32_t more_seconds);
void processMessage(MqttMessage* message);
void processMessage(const MqttMessage* message);
bool mqtt_connected = false;
char mqtt_flags;