|
|
@@ -52,7 +52,7 @@ public:
|
|
|
|
|
|
bool init(QueueHandle_t eventQueue);
|
|
|
bool getValue(std::string* errorText);
|
|
|
- void setValue(bool value, gpio_set_source setSource, std::string* errorText);
|
|
|
+ void setValue(bool value, gpio_set_source setSource, std::string* errorText, bool publishMqtt = true);
|
|
|
#ifdef ENABLE_MQTT
|
|
|
bool handleMQTT(std::string, char* data, int data_len);
|
|
|
#endif //ENABLE_MQTT
|
|
|
@@ -62,6 +62,7 @@ public:
|
|
|
gpio_pin_mode_t getMode() { return _mode; }
|
|
|
gpio_num_t getGPIO(){return _gpio;};
|
|
|
bool isHttpEnabled() const { return _httpEnable; }
|
|
|
+ const std::string &getMqttTopic() const { return _mqttTopic; }
|
|
|
|
|
|
private:
|
|
|
gpio_num_t _gpio;
|