mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
softap_prov: Changes in the example code as per changes to protocomm_httpd
Signed-off-by: Piyush Shah <piyush@espressif.com>
This commit is contained in:
parent
3e6b402756
commit
2e64d2d56e
@ -58,7 +58,11 @@ static esp_err_t app_prov_start_service(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Config for protocomm_httpd_start() */
|
/* Config for protocomm_httpd_start() */
|
||||||
protocomm_httpd_config_t pc_config = PROTOCOMM_HTTPD_DEFAULT_CONFIG();
|
protocomm_httpd_config_t pc_config = {
|
||||||
|
.data = {
|
||||||
|
.config = PROTOCOMM_HTTPD_DEFAULT_CONFIG()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/* Start protocomm server on top of HTTP */
|
/* Start protocomm server on top of HTTP */
|
||||||
if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
|
if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
|
||||||
|
@ -56,8 +56,11 @@ static esp_err_t app_prov_start_service(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Config for protocomm_httpd_start() */
|
/* Config for protocomm_httpd_start() */
|
||||||
protocomm_httpd_config_t pc_config = PROTOCOMM_HTTPD_DEFAULT_CONFIG();
|
protocomm_httpd_config_t pc_config = {
|
||||||
|
.data = {
|
||||||
|
.config = PROTOCOMM_HTTPD_DEFAULT_CONFIG()
|
||||||
|
}
|
||||||
|
};
|
||||||
/* Start protocomm server on top of HTTP */
|
/* Start protocomm server on top of HTTP */
|
||||||
if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
|
if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
|
||||||
ESP_LOGE(TAG, "Failed to start protocomm HTTP server");
|
ESP_LOGE(TAG, "Failed to start protocomm HTTP server");
|
||||||
|
Loading…
Reference in New Issue
Block a user