Просмотр исходного кода

Store per-pin HTTP access policy

SybexXx 3 дней назад
Родитель
Сommit
b9a53d8837
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      code/components/jomjol_controlGPIO/server_GPIO.h

+ 2 - 0
code/components/jomjol_controlGPIO/server_GPIO.h

@@ -51,6 +51,7 @@ public:
     gpio_int_type_t getInterruptType() { return _interruptType; }
     gpio_pin_mode_t getMode() { return _mode; }
     gpio_num_t getGPIO(){return _gpio;};
+    bool isHttpEnabled() const { return _httpEnable; }
 
 private:
     gpio_num_t _gpio;
@@ -58,6 +59,7 @@ private:
     gpio_pin_mode_t _mode;
     gpio_int_type_t _interruptType;
     std::string _mqttTopic;
+    bool _httpEnable = false;
     int currentState = -1;
 };