diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-04-30 10:37:55 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-04-30 10:37:55 +0200 |
commit | f6b5da2197f6c6afbbd3a2cbfaedaa0431b9d7a0 (patch) | |
tree | 9fd15ad954e4d1fa462799f7882e80454ac92919 /main/routes/relay.cpp | |
parent | 7150bc196b313e50da6a1af80706a3e94d314fe8 (diff) | |
download | ShelSP-f6b5da2197f6c6afbbd3a2cbfaedaa0431b9d7a0.tar.gz ShelSP-f6b5da2197f6c6afbbd3a2cbfaedaa0431b9d7a0.zip |
add Doxyfile
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; |