10#ifndef __TUYA_IOT_BASE_API_H
11#define __TUYA_IOT_BASE_API_H
13#include "tuya_cloud_types.h"
14#include "tuya_cloud_com_defs.h"
15#include "tuya_cloud_base_defs.h"
46 IN CONST CHAR_T *product_key, IN CONST CHAR_T *sw_ver, IN CONST DEV_TYPE_T tp,
62 IN CONST CHAR_T *sw_ver, IN CONST CHAR_T *mcu_sw_ver);
76 IN CONST CHAR_T *sw_ver);
77#define tuya_iot_soc_init(cbs, product_key, sw_ver) tuya_iot_soc_init_param(cbs, product_key, NULL, sw_ver)
108#define tuya_iot_reg_get_nw_stat_cb(nw_stat_cb) tuya_iot_reg_get_nw_stat_cb_params(nw_stat_cb, 1)
Definition of attach moudule attribute
Definition: tuya_cloud_com_defs.h:175
Definition of product info(wired)
Definition: tuya_svc_wired.h:27
Definition of gateway callback funtions
Definition: tuya_cloud_com_defs.h:726
OPERATE_RET tuya_iot_dev_init(IN CONST TY_IOT_CBS_S *cbs, IN CONST CHAR_T *firmware_key, IN CONST CHAR_T *product_key, IN CONST CHAR_T *sw_ver, IN CONST DEV_TYPE_T tp, IN CONST GW_ATTACH_ATTR_T *attr, IN CONST UINT_T attr_num)
tuya_iot_dev_init
OPERATE_RET tuya_iot_reg_get_nw_stat_cb_params(IN CONST GET_NW_STAT_CB nw_stat_cb, IN CONST INT_T min_interval_s)
tuya_iot_reg_get_nw_stat_cb_params @desc enable tuya-sdk network check. sdk will check the network ev...
OPERATE_RET tuya_iot_gw_reset(VOID)
tuya_iot_gw_reset
OPERATE_RET tuya_iot_soc_init_param(IN CONST TY_IOT_CBS_S *cbs, IN CONST CHAR_T *product_key, IN CONST CHAR_T *firmware_key, IN CONST CHAR_T *sw_ver)
tuya_iot_soc_init_param @desc init tuya-sdk (wired version, [soc] mode)
OPERATE_RET tuya_iot_mcu_dev_init(IN CONST TY_IOT_CBS_S *cbs, IN CONST CHAR_T *product_key, IN CONST CHAR_T *p_firmware_key, IN CONST CHAR_T *sw_ver, IN CONST CHAR_T *mcu_sw_ver)
tuya_iot_mcu_dev_init @desc init tuya-sdk (wired version, [mcu] mode)
OPERATE_RET tuya_iot_gw_unactive(VOID)
tuya_iot_gw_unactive @desc unactive this hardware from tuya-cloud
OPERATE_RET tuya_iot_set_gw_prod_info(IN CONST GW_PROD_INFO_S *prod_info)
tuya_iot_set_gw_prod_info @desc set tuya-sdk product info (wired version)
Common process - Initialization
VOID(* GET_NW_STAT_CB)(IN CONST GW_BASE_NW_STAT_T stat)
Handler when network state error happens(wired)
Definition: tuya_svc_wired.h:37