Documentation

Documentation

Includes

tuya_cloud_types.h

#include "tuya_cloud_types.h"
#include "tuya_cloud_types.h"

tuya_cloud_com_defs.h

#include "tuya_cloud_com_defs.h"
#include "tuya_cloud_com_defs.h"

netcfg_module.h

#include "netcfg_module.h"
#include "netcfg_module.h"

lan_protocol.h

#include "lan_protocol.h"
#include "lan_protocol.h"

Macros

Marco _AP_NETCFG_H_

#define _AP_NETCFG_H_

      

Functions

Func wifi_netcfg_start_ap_mode

int wifi_netcfg_start_ap_mode();
/*启动配网时,切换到ap模式,并开启热点*/

Func wifi_ap_netcfg_start

int wifi_ap_netcfg_start(FN_NETCFG_CB cb, void * args, int type);
/*
	func desc:开始ap配网
	parameter:
		input:
		out:
	return:
		
*/

Func wifi_ap_netcfg_stop

int wifi_ap_netcfg_stop(int type);
/*
	func desc:停止配网,释放资源
	parameters:
		input:
	return:

*/

Func lan_ap_nw_cfg_error_report

void lan_ap_nw_cfg_error_report(IN CONST char *p_desc,IN CONST AP_CFG_ERR_CODE error_code);
/*
	func desc: 上报配网错误日志到app
*/

Func ap_netcfg_init

int ap_netcfg_init(int netcfg_policy, ApSsidPasswd_t ApInfo);
/*
	ap netcfg init :注册netcfg 到 netcfg module
*/

Vars

Consts

Types

Typedefs

Typedef AP_CFG_FINISH_CB

typedef OPERATE_RET (*AP_CFG_FINISH_CB)(IN CONST CHAR_T *ssid,IN CONST CHAR_T *passwd, IN CONST CHAR_T *token);
/*
	配网完成之后的回调,在gw_intf.c中实现,用于保存配网信息到gw,同时触发绑定流程
*/