1 /*
2  * SPDX-FileCopyrightText: 2010-2023 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef SMARTCONFIG_ACK_H
8 #define SMARTCONFIG_ACK_H
9 
10 #include "esp_smartconfig.h"
11 #include "esp_err.h"
12 #include <stdint.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /**
19   * @brief  Send smartconfig ACK to cellphone.
20   *
21   * @attention The API can only be used when receiving SC_EVENT_GOT_SSID_PSWD event.
22   *
23   * @param  type: smartconfig type(ESPTouch or AirKiss);
24   *         token: token from the cellphone;
25   *         cellphone_ip: IP address of the cellphone;
26   *
27   * @return ESP_OK: succeed
28   *         others: fail
29   */
30 esp_err_t sc_send_ack_start(smartconfig_type_t type, uint8_t token, uint8_t *cellphone_ip);
31 
32 /**
33   * @brief  Stop sending smartconfig ACK to cellphone.
34   */
35 void sc_send_ack_stop(void);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 #endif
41