|
| 1 | +/** |
| 2 | + * @file reset_netcfg.c |
| 3 | + * @brief Implements reset network configuration functionality for IoT devices |
| 4 | + * |
| 5 | + * This source file provides the implementation of the reset network configuration |
| 6 | + * functionality required for IoT devices. It includes functionality for managing |
| 7 | + * reset counters, handling reset events, and clearing network configurations. |
| 8 | + * The implementation supports integration with the Tuya IoT platform and ensures |
| 9 | + * proper handling of reset-related operations. This file is essential for developers |
| 10 | + * working on IoT applications that require robust network configuration reset mechanisms. |
| 11 | + * |
| 12 | + * @copyright Copyright (c) 2021-2025 Tuya Inc. All Rights Reserved. |
| 13 | + */ |
| 14 | + |
| 15 | +#ifndef __RESET_NETCFG_H__ |
| 16 | +#define __RESET_NETCFG_H__ |
| 17 | + |
| 18 | +#include "tuya_cloud_types.h" |
| 19 | + |
| 20 | +#ifdef __cplusplus |
| 21 | +extern "C" { |
| 22 | +#endif |
| 23 | + |
| 24 | +/*********************************************************** |
| 25 | +************************macro define************************ |
| 26 | +***********************************************************/ |
| 27 | + |
| 28 | +/*********************************************************** |
| 29 | +***********************typedef define*********************** |
| 30 | +***********************************************************/ |
| 31 | + |
| 32 | +/*********************************************************** |
| 33 | +********************function declaration******************** |
| 34 | +***********************************************************/ |
| 35 | +/** |
| 36 | + * @brief Starts the network configuration reset process. |
| 37 | + * |
| 38 | + * This function initiates the process to reset the network configuration |
| 39 | + * of the device. It is typically used to clear existing network settings |
| 40 | + * and prepare the device for reconfiguration. |
| 41 | + * |
| 42 | + * @return int Returns 0 on success, or a negative value on failure. |
| 43 | + */ |
| 44 | +int reset_netconfig_start(void); |
| 45 | + |
| 46 | +/** |
| 47 | + * @brief Checks the status of the network configuration reset process. |
| 48 | + * |
| 49 | + * This function verifies whether the network configuration reset process |
| 50 | + * has been completed successfully or is still in progress. |
| 51 | + * |
| 52 | + * @return int Returns 0 on success, or a negative value on failure. |
| 53 | + */ |
| 54 | +int reset_netconfig_check(void); |
| 55 | + |
| 56 | +#ifdef __cplusplus |
| 57 | +} |
| 58 | +#endif |
| 59 | + |
| 60 | +#endif /* __RESET_NETCFG_H__ */ |
0 commit comments