/* * SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */#pragmaonce#include<protocomm.h>#include<protocomm_security.h>#include"wifi_provisioning/manager.h"#include"wifi_provisioning/wifi_config.h"#include"wifi_provisioning/wifi_scan.h"#include"wifi_ctrl.h"6 includes/** * @brief Notify manager that provisioning is done * * Stops the provisioning. This is called by the get_status_handler() * when the status is connected. This has no effect if main application * has disabled auto stop on completion by calling * wifi_prov_mgr_disable_auto_stop() * * @return * - ESP_OK : Provisioning will be stopped * - ESP_FAIL : Failed to stop provisioning *//* ... */esp_err_twifi_prov_mgr_done(void);/** * @brief Start Wi-Fi AP Scan * * @param[in] blocking Set true to return only after scanning is complete * @param[in] passive Set true to perform passive scan instead of default active scan * @param[in] group_channels Number of channels to scan in one go * (set to 0 for scanning all channels in one go) * @param[in] period_ms Scan time (in milli-seconds) on each channel * * @return * - ESP_OK : Successfully started Wi-Fi scanning * - ESP_FAIL : Provisioning app not running *//* ... */esp_err_twifi_prov_mgr_wifi_scan_start(boolblocking,boolpassive,uint8_tgroup_channels,uint32_tperiod_ms);/** * @brief Use to query the state of Wi-Fi scan * * @return * - true : Scan finished * - false : Scan running *//* ... */boolwifi_prov_mgr_wifi_scan_finished(void);/** * @brief Get the count of results in the scan list * * @return * - count : Number of Wi-Fi Access Points detected while scanning *//* ... */uint16_twifi_prov_mgr_wifi_scan_result_count(void);/** * @brief Get AP record for a particular index in the scan list result * * @param[out] index Index of the result to fetch * * @return * - result : Pointer to Access Point record *//* ... */constwifi_ap_record_t*wifi_prov_mgr_wifi_scan_result(uint16_tindex);/** * @brief Get protocomm handlers for wifi_config provisioning endpoint * * @param[out] ptr pointer to structure to be set * * @return * - ESP_OK : success * - ESP_ERR_INVALID_ARG : null argument *//* ... */esp_err_tget_wifi_prov_handlers(wifi_prov_config_handlers_t*ptr);/** * @brief Get protocomm handlers for wifi_scan provisioning endpoint * * @param[out] ptr pointer to structure to be set * * @return * - ESP_OK : success * - ESP_ERR_INVALID_ARG : null argument *//* ... */esp_err_tget_wifi_scan_handlers(wifi_prov_scan_handlers_t*ptr);/** * @brief Get protocomm handlers for wifi_ctrl provisioning endpoint * * @param[in] ptr pointer to structure to be set * * @return * - ESP_OK : success * - ESP_ERR_INVALID_ARG : null argument *//* ... */esp_err_tget_wifi_ctrl_handlers(wifi_ctrl_handlers_t*ptr);/** * @brief Retrieve the remaining number of Wi-Fi connection attempts * * This function provides the number of connection attempts left for * the Wi-Fi provisioning manager before reaching the maximum retry limit. * * @param[out] attempts_remaining Pointer to store the remaining connection attempts * * @return * - ESP_OK: Success * - ESP_ERR_INVALID_ARG: Null pointer provided for attempts_remaining * - ESP_FAIL: Failed to retrieve the remaining attempts *//* ... */esp_err_twifi_prov_mgr_get_remaining_conn_attempts(uint32_t*attempts_remaining);
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.