Documentation

Documentation

Includes

tuya_iot_config.h

#include "tuya_iot_config.h"
#include "tuya_iot_config.h"

tuya_hal_wired.h

#include "tuya_hal_wired.h"
#include "tuya_hal_wired.h"

tuya_cloud_types.h

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

Macros

Marco TUYA_CLOUD_BASE_DEFS_H

#define TUYA_CLOUD_BASE_DEFS_H


      

Marco GB_STAT_LAN_UNCONN

#define GB_STAT_LAN_UNCONN 0
/* offline in LAN.  user wired callback  return  */

Marco GB_STAT_LAN_CONN

#define GB_STAT_LAN_CONN 1
/* online in LAN, offline in WAN.
   user wired callback  return  but mqtt is offline
*/

Marco GB_STAT_CLOUD_CONN

#define GB_STAT_CLOUD_CONN 2
/* online in WAN.
   user wired callback  return  and mqtt is online
*/

Marco GB_STAT_GPRS_SIM_DISC

#define GB_STAT_GPRS_SIM_DISC 3
/* GPRS: SIM is not ready. */

Marco GB_STAT_GPRS_SEARCH_NETWORK

#define GB_STAT_GPRS_SEARCH_NETWORK 4
/* GPRS: search network. */

Marco GB_STAT_GPRS_REG_NETWORK

#define GB_STAT_GPRS_REG_NETWORK 5
/* GPRS: regist network. */

Marco GB_STAT_GPRS_GOT_IP

#define GB_STAT_GPRS_GOT_IP 6
/* GPRS: got ip address. */

Functions

Vars

Consts

Types

Typedefs

Typedef GW_PROD_INFO_S;

typedef struct {
   CHAR_T *uuid;       // strlen(uuid) <= 16,must not be null
   CHAR_T *auth_key;   // strlen(auth_key) <= 32,must not be null
}GW_PROD_INFO_S;
/**
 * @brief Definition of product info(wired)
 */

Typedef GET_NW_STAT_CB

typedef VOID (*GET_NW_STAT_CB)(IN CONST GW_BASE_NW_STAT_T stat);
/**
 * @brief Handler when network state error happens(wired)
 *
 * @param[in] stat State code, see GW_BASE_NW_STAT_T
 */