HTTPd WIP

This commit is contained in:
Sebastien
2020-02-10 19:17:16 -05:00
parent fdbb24962a
commit 730b6d38a5
3 changed files with 4 additions and 3 deletions

View File

@@ -15,5 +15,5 @@
PROJECT_NAME?=squeezelite
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

View File

@@ -362,6 +362,7 @@ static void handleLogBuffer(int partnerSocket, UBaseType_t count){
static void doTelnet(int partnerSocket) {
//ESP_LOGD(tag, ">> doTelnet");
static const telnet_telopt_t my_telopts[] = {
{ TELNET_TELOPT_ECHO, TELNET_WILL, TELNET_DONT },
{ TELNET_TELOPT_TTYPE, TELNET_WILL, TELNET_DONT },
{ TELNET_TELOPT_COMPRESS2, TELNET_WONT, TELNET_DO },

View File

@@ -54,7 +54,7 @@ function to process requests, decode URLs, serve files, etc. etc.
const char str_na[]="N/A";
#define STR_OR_NA(s) s?s:str_na
/* @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 */
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);
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);
}