Code: Select all
char* HTML = (char*)malloc(8500);
if (HTML != NULL)
{
ESP_LOGD(TAG,"Fill HTML file");
export_aio_conf(conf, HTML, html_request);
ESP_LOGD(TAG,"Send Response");
httpd_resp_send(req, (const char*)HTML, strlen(HTML));
free(HTML);
}