[MQTT] Reworked driver exclusion
This commit is contained in:
parent
d032015e31
commit
7a22cbfd4d
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue