esp-idf/examples/network/sta_to_eth/main/provisioning.h
David Cermak 6ac17b5020 Examples/network: Add Ethernet iface to sta-2-wired bridge
* adds description about that it's not a bridge, but more like an 1:1
forwarder on L2
* add and describe mac spoofing for Ethernet interface
* describe virtual networking for USB-NCM interface
2023-06-08 07:33:52 +02:00

23 lines
621 B
C

/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#pragma once
/**
* @brief Checks if the device has been provisioned
* @return true if WiFi is provisioned
*/
bool is_provisioned(void);
/**
* @brief Initiate provisioning
* @param flags Event flags to indicate status of provisioning
* @param success_bit bits set in the event flags on success
* @param fail_bit bits set in the event flags on failure
* @return ESP_OK if provisioning started
*/
esp_err_t start_provisioning(EventGroupHandle_t *flags, int success_bit, int fail_bit);