Reduce system load when loading HTTP UI - release

This commit is contained in:
Sebastien
2020-11-17 11:41:03 -05:00
parent 8fbe1159f5
commit cd13577d93
4 changed files with 150 additions and 96 deletions

View File

@@ -584,7 +584,7 @@ esp_err_t config_get_handler(httpd_req_t *req){
}
else {
ESP_LOGD_LOC(TAG, "config json : %s",json );
cJSON * gplist=get_gpio_list();
cJSON * gplist=get_gpio_list(false);
char * gpliststr=cJSON_PrintUnformatted(gplist);
httpd_resp_sendstr_chunk(req,"{ \"gpio\":");
httpd_resp_sendstr_chunk(req,gpliststr);