main/httpd.c
static esp_err_t handle_get_ctrl_state(httpd_req_t * req)
{
    char descr[88];
    size_t len = get_lights_ctlr_status(descr, sizeof(descr));

    httpd_resp_set_type(req, "text/plain");
    return httpd_resp_send(req, descr, len);
}
/**
 * Handles GET "/ctrl/st" requests.
 *
 * Returns the light control task current state as plain text.
 *
 * @param req HTTP request
 */
Handles GET "/ctrl/st" requests.
Returns the light control task current state as plain text.

@param req HTTP request
Handles GET " / ctrl / st " requests . Returns the light control task current state as plain text . @param req HTTP request
static esp_err_t handle_get_ctrl_state(httpd_req_t * req)
{
    char descr[88];
    size_t len = get_lights_ctlr_status(descr, sizeof(descr));
    httpd_resp_set_type(req, "text/plain");
    return httpd_resp_send(req, descr, len);
}
static esp_err_t handle_get_ctrl_state ( httpd_req_t * req ) { char descr [ 88 ] ; size_t len = get_lights_ctlr_status ( descr , sizeof ( descr ) ) ; httpd_resp_set_type ( req , " " ) ; return httpd_resp_send ( req , descr , len ) ; }
Handles GET "/ctrl/st" requests.
Handles GET " / ctrl / st " requests .