10#ifndef _TUYA_IOT_WIFI_API_H
11#define _TUYA_IOT_WIFI_API_H
17#include "tuya_cloud_types.h"
18#include "tuya_cloud_com_defs.h"
72 IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver, IN CONST DEV_TYPE_T tp,
90 IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver, IN CONST CHAR_T *mcu_sw_ver);
106 IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver);
107#define tuya_iot_wf_soc_dev_init(cfg, start_mode,cbs,product_key,wf_sw_ver) \
108 tuya_iot_wf_soc_dev_init_param(cfg, start_mode,cbs,NULL,product_key,wf_sw_ver)
120#define tuya_iot_reg_get_wf_nw_stat_cb(wf_nw_stat_cb) \
121 tuya_iot_reg_get_wf_nw_stat_cb_params(wf_nw_stat_cb, 1)
234OPERATE_RET tuya_iot_netcfg_reinit(VOID_T);
Facility of DevOS definitions
Definition of attach moudule attribute
Definition: tuya_cloud_com_defs.h:175
Definition of device work state
Definition: gw_intf.h:96
Definition of gateway callback funtions
Definition: tuya_cloud_com_defs.h:807
Definition: tuya_cloud_wifi_defs.h:123
Common definitions of TUYA cloud
VOID(* WF_NW_CFG_ERR_CODE_CB)(IN CONST NW_CFG_ERR_CODE_E err_code)
Handler when network configuration error happens
Definition: tuya_cloud_wifi_defs.h:152
VOID(* GET_WF_NW_STAT_CB)(IN CONST GW_WIFI_NW_STAT_E stat)
Handler when network connection error happens
Definition: tuya_cloud_wifi_defs.h:145
OPERATE_RET tuya_iot_netcfg_init(IN CONST GW_WF_START_MODE start_mode, IN GW_WORK_STAT_MAG_S *p_gw_wsm)
tuya_iot_netcfg_init
OPERATE_RET tuya_iot_wf_gw_unactive(VOID)
tuya_iot_wf_gw_unactive
OPERATE_RET tuya_iot_set_wf_cfg_err_code_cb(IN CONST WF_NW_CFG_ERR_CODE_CB wf_nw_cfg_err_code_cb)
tuya_iot_set_wf_cfg_err_code_cb
OPERATE_RET tuya_iot_wf_gw_reset(VOID)
tuya_iot_wf_gw_reset
OPERATE_RET tuya_iot_set_wf_gw_prod_info(IN CONST WF_GW_PROD_INFO_S *wf_prod_info)
tuya_iot_set_wf_gw_prod_info
OPERATE_RET tuya_iot_wf_soc_dev_init_param(IN CONST GW_WF_CFG_MTHD_SEL cfg, IN CONST GW_WF_START_MODE start_mode, IN CONST TY_IOT_CBS_S *cbs, IN CHAR_T *firmware_key, IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver)
tuya_iot_wf_soc_dev_init_param
OPERATE_RET tuya_iot_reg_get_wf_nw_stat_cb_params(IN CONST GET_WF_NW_STAT_CB wf_nw_stat_cb, IN CONST INT_T min_interval_s)
tuya_iot_reg_get_wf_nw_stat_cb_params
VOID tuya_iot_wf_timeout_set(IN CONST UINT_T timeout)
tuya_iot_wf_timeout_set @desc set wifi timeout
VOID tuya_iot_set_ip_mode(IP_MODE_TYPE ip_mode)
set ip mode
OPERATE_RET tuya_iot_wf_mcu_dev_init(IN CONST GW_WF_CFG_MTHD_SEL cfg, IN CONST GW_WF_START_MODE start_mode, IN CONST TY_IOT_CBS_S *cbs, IN CHAR_T *p_firmware_key, IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver, IN CONST CHAR_T *mcu_sw_ver)
tuya_iot_wf_mcu_dev_init
OPERATE_RET tuya_iot_get_dev_ap_if(OUT CHAR_T *ssid, OUT CHAR_T *passwd)
tuya_iot_get_dev_ap_if
OPERATE_RET tuya_iot_get_station_ip(NW_IP_S *p_ip)
get station ip
VOID tuya_iot_set_max_sta_conn(IN CONST UCHAR_T max_conn)
tuya_iot_set_max_sta_conn
OPERATE_RET tuya_iot_gw_wf_user_cfg(IN CONST CHAR_T *ssid, IN CONST CHAR_T *passwd, IN CONST CHAR_T *token)
tuya_iot_gw_wf_user_cfg
OPERATE_RET iot_wf_gw_unactive_custom_mode(GW_WF_START_MODE wifi_mode)
iot_wf_gw_unactive_custom_mode
OPERATE_RET tuya_iot_wf_dev_init(IN CONST GW_WF_CFG_MTHD_SEL cfg, IN CONST GW_WF_START_MODE start_mode, IN CONST TY_IOT_CBS_S *cbs, IN CHAR_T *firmware_key, IN CHAR_T *product_key, IN CHAR_T *wf_sw_ver, IN CONST DEV_TYPE_T tp, IN GW_ATTACH_ATTR_T *attr, IN CONST UINT_T attr_num)
tuya_iot_wf_dev_init
IP_MODE_TYPE tuya_iot_get_ip_mode()
get ip mode
OPERATE_RET tuya_iot_wf_fast_get_nc_type(GW_WF_NWC_FAST_STAT_T *nc_type)
tuya_iot_wf_fast_get_nc_type
OPERATE_RET tuya_iot_set_user_def_ap_if(IN CONST CHAR_T *ssid, IN CONST CHAR_T *passwd)
tuya_iot_set_user_def_ap_if
OPERATE_RET tuya_iot_wf_gw_fast_unactive(IN CONST GW_WF_CFG_MTHD_SEL mthd, IN CONST GW_WF_START_MODE wifi_start_mode)
tuya_iot_wf_gw_fast_unactive
VOID tuya_iot_set_nw_ip(IN CONST CHAR_T *ip, IN CONST CHAR_T *mask, IN CONST CHAR_T *gw)
tuya_iot_set_nw_ip