mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
HTTPd WIP
This commit is contained in:
2
Makefile
2
Makefile
@@ -15,5 +15,5 @@
|
|||||||
PROJECT_NAME?=squeezelite
|
PROJECT_NAME?=squeezelite
|
||||||
include $(IDF_PATH)/make/project.mk
|
include $(IDF_PATH)/make/project.mk
|
||||||
|
|
||||||
CFLAGS += -Wno-error=format-overflow -Wno-error=stringop-truncation
|
# for future gcc version, this could be needed: CPPFLAGS+= -Wno-error=format-overflow -Wno-error=stringop-truncation
|
||||||
CPPFLAGS+= -Wno-error=maybe-uninitialized
|
CPPFLAGS+= -Wno-error=maybe-uninitialized
|
||||||
|
|||||||
@@ -362,6 +362,7 @@ static void handleLogBuffer(int partnerSocket, UBaseType_t count){
|
|||||||
static void doTelnet(int partnerSocket) {
|
static void doTelnet(int partnerSocket) {
|
||||||
//ESP_LOGD(tag, ">> doTelnet");
|
//ESP_LOGD(tag, ">> doTelnet");
|
||||||
static const telnet_telopt_t my_telopts[] = {
|
static const telnet_telopt_t my_telopts[] = {
|
||||||
|
|
||||||
{ TELNET_TELOPT_ECHO, TELNET_WILL, TELNET_DONT },
|
{ TELNET_TELOPT_ECHO, TELNET_WILL, TELNET_DONT },
|
||||||
{ TELNET_TELOPT_TTYPE, TELNET_WILL, TELNET_DONT },
|
{ TELNET_TELOPT_TTYPE, TELNET_WILL, TELNET_DONT },
|
||||||
{ TELNET_TELOPT_COMPRESS2, TELNET_WONT, TELNET_DO },
|
{ TELNET_TELOPT_COMPRESS2, TELNET_WONT, TELNET_DO },
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function to process requests, decode URLs, serve files, etc. etc.
|
|||||||
const char str_na[]="N/A";
|
const char str_na[]="N/A";
|
||||||
#define STR_OR_NA(s) s?s:str_na
|
#define STR_OR_NA(s) s?s:str_na
|
||||||
/* @brief tag used for ESP serial console messages */
|
/* @brief tag used for ESP serial console messages */
|
||||||
static const char TAG[] = "http_server";
|
static const char TAG[] = "httpd_handlers";
|
||||||
/* @brief task handle for the http server */
|
/* @brief task handle for the http server */
|
||||||
|
|
||||||
SemaphoreHandle_t http_server_config_mutex = NULL;
|
SemaphoreHandle_t http_server_config_mutex = NULL;
|
||||||
@@ -558,7 +558,7 @@ esp_err_t config_post_handler(httpd_req_t *req){
|
|||||||
|
|
||||||
char * root_str = cJSON_Print(root);
|
char * root_str = cJSON_Print(root);
|
||||||
if(root_str!=NULL){
|
if(root_str!=NULL){
|
||||||
ESP_LOGE(TAG, "Processing config item: \n%s", root_str);
|
ESP_LOGD(TAG, "Processing config item: \n%s", root_str);
|
||||||
free(root_str);
|
free(root_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user