1 // Copyright 2019 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #include <protocomm.h> 18 #include <protocomm_httpd.h> 19 20 #include "wifi_provisioning/manager.h" 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 /** 27 * @brief Scheme that can be used by manager for provisioning 28 * over SoftAP transport with HTTP server 29 */ 30 extern const wifi_prov_scheme_t wifi_prov_scheme_softap; 31 32 /** 33 * 34 * @brief Provide HTTPD Server handle externally. 35 * 36 * Useful in cases wherein applications need the webserver for some 37 * different operations, and do not want the wifi provisioning component 38 * to start/stop a new instance. 39 * 40 * @note This API should be called before wifi_prov_mgr_start_provisioning() 41 * 42 * @param[in] handle Handle to HTTPD server instance 43 */ 44 void wifi_prov_scheme_softap_set_httpd_handle(void *handle); 45 #ifdef __cplusplus 46 } 47 #endif 48