]> granicus.if.org Git - esp-idf/commitdiff
softap_prov: Changes in the example code as per changes to protocomm_httpd
authorPiyush Shah <piyush@espressif.com>
Fri, 1 Feb 2019 12:51:46 +0000 (18:21 +0530)
committerbot <bot@espressif.com>
Mon, 18 Feb 2019 08:18:44 +0000 (08:18 +0000)
Signed-off-by: Piyush Shah <piyush@espressif.com>
examples/provisioning/custom_config/main/app_prov.c
examples/provisioning/softap_prov/main/app_prov.c

index ce33ac960d0ce9a9b4d9e9ed0a385685102c3942..947ce3650ab6c45820825b2e4769a0eced064e64 100644 (file)
@@ -58,7 +58,11 @@ static esp_err_t app_prov_start_service(void)
     }
 
     /* 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 */
     if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
index b110d2e5271a0aca615ee37881fc8b5b2ca97eff..da0036f8dca6d9595ca01c3a6d63ddc0cc8ebc74 100644 (file)
@@ -56,8 +56,11 @@ static esp_err_t app_prov_start_service(void)
     }
 
     /* 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 */
     if (protocomm_httpd_start(g_prov->pc, &pc_config) != ESP_OK) {
         ESP_LOGE(TAG, "Failed to start protocomm HTTP server");