diff options
Diffstat (limited to 'main/routes/relay.cpp')
-rw-r--r-- | main/routes/relay.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/routes/relay.cpp b/main/routes/relay.cpp index 8f7b3ed..6cbbdef 100644 --- a/main/routes/relay.cpp +++ b/main/routes/relay.cpp @@ -6,11 +6,17 @@ static const char *TAG = "routes/relay"; +/** + * \remark defaults to 4 + */ #define GPIO_RELAY_PIN (gpio_num_t)CONFIG_SHELLSP_RELAY_PIN #if !CONFIG_IDF_TARGET_LINUX #include "driver/gpio.h" +/** + * @return initialized relay pin configuration + */ static gpio_config_t* get_gpio(void) { static gpio_config_t io_conf; @@ -42,6 +48,9 @@ static gpio_config_t* get_gpio(void) +/** + * Handles requests for the `/relay/0` endpoint + */ esp_err_t relay_handler(httpd_req_t *req) { char* resp = NULL; |