TuyaOS
|
#include "tuya_cloud_types.h"
#include "tuya_cloud_com_defs.h"
#include "tuya_cloud_wifi_defs.h"
#include "tuya_iot_com_api.h"
#include "gw_intf.h"
宏定义 | |
#define | tuya_iot_reg_get_wf_nw_stat_cb(wf_nw_stat_cb) tuya_iot_reg_get_wf_nw_stat_cb_params(wf_nw_stat_cb, 1) |
#define | tuya_iot_wf_soc_dev_init(cfg, start_mode, cbs, product_key, wf_sw_ver) tuya_iot_wf_soc_dev_init_param(cfg, start_mode,cbs,NULL,product_key,wf_sw_ver) |
函数 | |
OPERATE_RET | iot_wf_gw_unactive_custom_mode (GW_WF_START_MODE wifi_mode) |
iot_wf_gw_unactive_custom_mode 更多... | |
OPERATE_RET | tuya_iot_get_dev_ap_if (OUT CHAR_T *ssid, OUT CHAR_T *passwd) |
tuya_iot_get_dev_ap_if 更多... | |
IP_MODE_TYPE | tuya_iot_get_ip_mode () |
get ip mode 更多... | |
OPERATE_RET | tuya_iot_get_station_ip (NW_IP_S *p_ip) |
get station ip 更多... | |
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 | 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_netcfg_reinit (VOID_T) |
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_set_ip_mode (IP_MODE_TYPE ip_mode) |
set ip mode 更多... | |
VOID | tuya_iot_set_max_sta_conn (IN CONST UCHAR_T max_conn) |
tuya_iot_set_max_sta_conn 更多... | |
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 更多... | |
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_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_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_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 更多... | |
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_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 更多... | |
OPERATE_RET | tuya_iot_wf_gw_reset (VOID) |
tuya_iot_wf_gw_reset 更多... | |
OPERATE_RET | tuya_iot_wf_gw_unactive (VOID) |
tuya_iot_wf_gw_unactive 更多... | |
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_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 更多... | |
VOID | tuya_iot_wf_timeout_set (IN CONST UINT_T timeout) |
tuya_iot_wf_timeout_set @desc set wifi timeout 更多... | |
OPERATE_RET iot_wf_gw_unactive_custom_mode | ( | GW_WF_START_MODE | wifi_mode | ) |
iot_wf_gw_unactive_custom_mode
[in] | wifi_mode |
OPERATE_RET tuya_iot_get_dev_ap_if | ( | OUT CHAR_T * | ssid, |
OUT CHAR_T * | passwd | ||
) |
tuya_iot_get_dev_ap_if
[in] | ssid | the ssid of deivce ap |
[in] | passwd | the passwd of device ap |
IP_MODE_TYPE tuya_iot_get_ip_mode | ( | ) |
get ip mode
OPERATE_RET tuya_iot_get_station_ip | ( | NW_IP_S * | p_ip | ) |
get station ip
[out] | p_ip | ip |
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
[in] | ssid | user config router ap ssid |
[in] | passwd | user config router ap passwd |
[in] | token | the token of tuya cloud |
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_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
wf_nw_stat_cb | network status monitor callback |
min_interval_s | network status detect interval |
VOID tuya_iot_set_ip_mode | ( | IP_MODE_TYPE | ip_mode | ) |
set ip mode
[in] | ip | mode |
VOID tuya_iot_set_max_sta_conn | ( | IN CONST UCHAR_T | max_conn | ) |
tuya_iot_set_max_sta_conn
[in] | max_conn |
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
[in] | ip | |
[in] | mask | |
[in] | gw |
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
[in] | ssid | user defined ssid of device ap |
[in] | passwd | user defined ssid of device ap |
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
wf_nw_cfg_err_code_cb |
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
[in] | wf_prod_info: | device product info |
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
[in] | cfg | wifi device work mode |
[in] | start_mode | wifi netcfg mode |
[in] | cbs | tuya wifi sdk user callbacks |
[in] | firmware_key | the firmware key |
[in] | product_key | product key/proudct id,get from tuya open platform |
[in] | wf_sw_ver | wifi module software version format:xx.xx.xx (0<=x<=9) |
[in] | attr | the attach firmware of this device |
[in] | attr_num | the attach firmware number |
OPERATE_RET tuya_iot_wf_fast_get_nc_type | ( | GW_WF_NWC_FAST_STAT_T * | nc_type | ) |
tuya_iot_wf_fast_get_nc_type
[in] | nc_type |
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
[in] | mthd | new work mode after reboot |
[in] | wifi_start_mode | new netcfg mode after reboot |
OPERATE_RET tuya_iot_wf_gw_reset | ( | VOID | ) |
tuya_iot_wf_gw_reset
OPERATE_RET tuya_iot_wf_gw_unactive | ( | VOID | ) |
tuya_iot_wf_gw_unactive
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
[in] | cfg | wifi device work mode |
[in] | start_mode | wifi netcfg mode |
[in] | cbs | tuya wifi sdk user callbacks |
[in] | p_firmware_key | the firmware key |
[in] | product_key | product key/proudct id,get from tuya open platform |
[in] | wf_sw_ver | wifi module software version format:xx.xx.xx (0<=x<=9) |
[in] | mcu_sw_ver | mcu software version format:xx.xx.xx (0<=x<=9) |
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
[in] | cfg | |
[in] | start_mode | |
[in] | cbs | tuya wifi sdk user callbacks,note cbs->dev_ug_cb is useless |
[in] | firmware_key | |
[in] | product_key | product key/proudct id,get from tuya open platform |
[in] | wf_sw_ver | wifi module software version format:xx.xx.xx (0<=x<=9) |
VOID tuya_iot_wf_timeout_set | ( | IN CONST UINT_T | timeout | ) |
tuya_iot_wf_timeout_set @desc set wifi timeout
[in] | timeout | time in sec |