Skip to content

Commit fe3edc3

Browse files
updating entrypoint for ArduinoMqttClient
1 parent a5133db commit fe3edc3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ArduinoMqttClient.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
#ifndef _ARDUINO_MQTT_CLIENT_H_
2121
#define _ARDUINO_MQTT_CLIENT_H_
2222

23+
#if defined(__ZEPHYR__) && __ZEPHYR__ == 1 && defined(CONFIG_MQTT_LIB)
24+
#include "implementations/ZephyrMqttClient.h"
25+
26+
using MqttClient = ZephyrMqttClient;
27+
#else
2328
#include "MqttClient.h"
2429

30+
using MqttClient = ArduinoMqttClient;
31+
#endif
32+
2533
#endif

0 commit comments

Comments
 (0)