[MQTT] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:45:35 +02:00
parent d032015e31
commit 7a22cbfd4d
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "MQTT.h" #include "MQTT.h"
#if !defined(RADIOLIB_EXCLUDE_MQTT)
MQTTClient::MQTTClient(TransportLayer* tl, uint16_t port) { MQTTClient::MQTTClient(TransportLayer* tl, uint16_t port) {
_tl = tl; _tl = tl;
@ -469,3 +470,5 @@ uint32_t MQTTClient::decodeLength(uint8_t* encoded) {
} while((encoded[i] & 128) != 0); } while((encoded[i] & 128) != 0);
return len; return len;
} }
#endif

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_MQTT_H #if !defined(_RADIOLIB_MQTT_H) && !defined(RADIOLIB_EXCLUDE_MQTT)
#define _RADIOLIB_MQTT_H #define _RADIOLIB_MQTT_H
#include "../../TypeDef.h" #include "../../TypeDef.h"