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