Documentation

Documentation

Includes

ty_cJSON.h

#include "ty_cJSON.h"
#include "ty_cJSON.h"

Macros

Marco __SVC_ASTRO_TIMER__

#define __SVC_ASTRO_TIMER__

      

Functions

Func tuya_astro_timer_init

int tuya_astro_timer_init(void);
/**
 * @brief astronomy timer init function
 * 
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 * 
 */

Func tuya_astro_timer_mqc_notify

int tuya_astro_timer_mqc_notify(char *atop, char *ver, ty_cJSON *params);
/**
 * @brief astronomy timer mqtt notify
 *
 * @param[in] atop Atop command
 * @param[in] ver Version
 * @param[in] params Json parameter
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 * 
 */

Func tuya_astro_timer_reset

int tuya_astro_timer_reset(void);
/**
 * @brief astronomy timer reset
 * 
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 * 
 */

Vars

Consts

Types

Typedefs