Documentation

Documentation

Includes

tuya_cloud_types.h

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

Macros

Marco __TUYA_SVC_ONLINE_LOG_H__

#define __TUYA_SVC_ONLINE_LOG_H__

      

Functions

Func tuya_svc_online_log_init

OPERATE_RET tuya_svc_online_log_init(const char *p_env);
/**
 * @brief online log module initialization
 * 
 * @param[in] p_env: the online log enviroment, used to report to cloud 
 * @return OPRT_OK on success, others on failed, please refer to tuya_error_code.h
 */

Func tuya_svc_online_log_active

OPERATE_RET tuya_svc_online_log_active(VOID);
/**
 * @brief online log module activate
 * 
 * @return OPRT_OK on success, others on failed, please refer to tuya_error_code.h
 */

Func tuya_svc_online_log_upload_runstat

OPERATE_RET tuya_svc_online_log_upload_runstat(const char *p_log);
/**
 * @brief upload user runtime status log
 * 
 * @param[in] p_log: the log string 
 * @return OPRT_OK on success, others on failed, please refer to tuya_error_code.h
 */

Func tuya_svc_online_log_upload_realtime

OPERATE_RET tuya_svc_online_log_upload_realtime(const char *p_log);
/**
 * @brief upload user realtime log
 * 
 * @param[in] p_log: the log string 
 * @return OPRT_OK on success, others on failed, please refer to tuya_error_code.h
 */

Func tuya_svc_online_log_upload_custom_seq_log

OPERATE_RET tuya_svc_online_log_upload_custom_seq_log(const char *p_log);
/**
 * @brief upload user sequnence log 
 * 
 * @param[in] p_log: custom sequnence log string  
 * @return OPRT_OK on success, others on failed, please refer to tuya_error_code.h
 */

Vars

Consts

Types

Typedefs