Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Dec 19, 2023
1 parent 6233969 commit ae345dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/MqttVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class V5 {
// empty
};

} // end namespace MQTTVERSION
} // end namespace MQTTVERSION
10 changes: 5 additions & 5 deletions src/espMqttClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ the LICENSE file.

#if defined(ARDUINO_ARCH_ESP8266)
template <class MQTT_VERSION>
class espMqttClient : public MqttClientSetup<espMqttClient> {
class espMqttClient : public MqttClientSetup<espMqttClient<MQTT_VERSION>> {
public:
espMqttClient()
: MqttClientSetup(espMqttClientTypes::UseInternalTask::NO)
Expand All @@ -36,7 +36,7 @@ class espMqttClient : public MqttClientSetup<espMqttClient> {
};

template <class MQTT_VERSION>
class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure> {
class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure<MQTT_VERSION>> {
public:
espMqttClientSecure()
: MqttClientSetup(espMqttClientTypes::UseInternalTask::NO)
Expand Down Expand Up @@ -80,7 +80,7 @@ class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure> {
#endif

#if defined(ARDUINO_ARCH_ESP32)
class espMqttClient : public MqttClientSetup<espMqttClient> {
class espMqttClient : public MqttClientSetup<espMqttClient<MQTT_VERSION>> {
public:
explicit espMqttClient(espMqttClientTypes::UseInternalTask useInternalTask)
: MqttClientSetup(useInternalTask)
Expand All @@ -98,7 +98,7 @@ class espMqttClient : public MqttClientSetup<espMqttClient> {
espMqttClientInternals::ClientSync _client;
};

class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure> {
class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure<MQTT_VERSION>> {
public:
explicit espMqttClientSecure(espMqttClientTypes::UseInternalTask useInternalTask)
: MqttClientSetup(useInternalTask)
Expand Down Expand Up @@ -143,7 +143,7 @@ class espMqttClientSecure : public MqttClientSetup<espMqttClientSecure> {
#endif

#if defined(__linux__)
class espMqttClient : public MqttClientSetup<espMqttClient> {
class espMqttClient : public MqttClientSetup<espMqttClient<MQTT_VERSION>> {
public:
espMqttClient()
: MqttClientSetup(espMqttClientTypes::UseInternalTask::NO)
Expand Down
2 changes: 1 addition & 1 deletion src/espMqttClientAsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ the LICENSE file.
#include "MqttVersion.h"

template <class MQTT_VERSION>
class espMqttClientAsync : public MqttClientSetup<espMqttClientAsync> {
class espMqttClientAsync : public MqttClientSetup<espMqttClientAsync<MQTT_VERSION>> {
public:
espMqttClientAsync()
: MqttClientSetup(espMqttClientTypes::UseInternalTask::NO)
Expand Down

0 comments on commit ae345dc

Please sign in to comment.