14#include "tuya_cloud_types.h"
85CHAR_T *
sf_pack_local_obj_dp_data(IN
DEV_CNTL_N_S *dev_cntl, IN CONST UINT_T max_len, IN CONST BOOL_T addDevId, OUT BOOL_T *p_all_data_packed, BOOL_T reset_flow_ctl, IN CONST BOOL_T is_lan, OUT CHAR_T** time_str);
134typedef OPERATE_RET(*sf_special_dp_cb)(IN CONST UINT16_T dpid, IN CONST
ty_cJSON *dp_obj);
163typedef OPERATE_RET(*sf_trans_type_cb)(IN CONST UINT16_T dpid, IN CONST
ty_cJSON *data_js);
199typedef OPERATE_RET(*subdev_dev_cntl_cb)(IN
DEV_CNTL_N_S *subdev_cntl, VOID *param);
201typedef OPERATE_RET(*sf_subdev_dev_cntl_traversal_cb)(subdev_dev_cntl_cb, VOID *param);
204typedef BOOL_T(*sf_subdev_reliable_transfer_check_cb)(IN CHAR_T *id);
207typedef UINT_T(*sf_subdev_reliable_transfer_time_get_cb)(IN CHAR_T *id);
210typedef BOOL_T(*sf_subdev_report_check_cb)(IN CHAR_T *id);
217 sf_subdev_dev_cntl_traversal_cb traversal_cb;
219 sf_subdev_reliable_transfer_check_cb rt_check_cb;
221 sf_subdev_reliable_transfer_time_get_cb rt_time_get_cb;
223 sf_subdev_report_check_cb rpt_check_cb;
252 DP_REPT_FORM_T rept_form;
319OPERATE_RET
ty_dp_report(IN CONST DP_REPT_TYPE_E dp_rept_type, IN VOID_T* dp_rept);
383#if defined(ENABLE_COMMUNICATE_PRIORITY) && (ENABLE_COMMUNICATE_PRIORITY==1)
395OPERATE_RET ty_set_dp_rept_chan(IN UINT8_T chan[], UINT8_T cnt, BOOL_T only);
406UINT8_T* ty_get_dp_rept_chan(UINT8_T* cnt);
Facility of DevOS definitions
OPERATE_RET ty_get_obj_dp_from_json(IN CHAR_T *dev_id, IN CONST CHAR_T *json_str, OUT TY_OBJ_DP_S **dp_data, OUT UINT_T *cnt)
ty_dp_json_to_obj @desc transfer json format dp to object
UINT8_T ty_get_dpid_rept_rule(VOID_T)
get dp id report rule
UINT_T sf_get_serial_no(VOID)
Get serial number for dp report
CHAR_T * sf_pack_local_obj_dp_data(IN DEV_CNTL_N_S *dev_cntl, IN CONST UINT_T max_len, IN CONST BOOL_T addDevId, OUT BOOL_T *p_all_data_packed, BOOL_T reset_flow_ctl, IN CONST BOOL_T is_lan, OUT CHAR_T **time_str)
Packed the local dp data as string in json format
OPERATE_RET sf_dp_set_delete_null_dp(BOOL_T enable)
Set enable switch for deleting null dp
OPERATE_RET sf_trans_type_register_cb(IN CONST DP_TRANS_TYPE_T trans, IN sf_trans_type_cb handler)
Register callback function for different kind of transport type
VOID ty_set_dpid_rept_rule(UINT8_T rept_rule)
set dp id report rule
OPERATE_RET sf_dp_set_report_timeout(UINT_T timeout_s)
Set default dp report timeout
struct msg_data_s MSG_DATA_S
info of dp message data
OPERATE_RET sf_regist_dp_rept_cb(IN DP_REPT_HADLE_CB_S *dp_rept_cbs)
Register callback function for dp report
VOID_T ty_free_obj_dp_data(TY_OBJ_DP_S *dp_data, UINT_T cnt)
ty_free_obj_dp_data @desc free memory of object dp
OPERATE_RET sf_special_dp_register_cb(IN sf_special_dp_cb handler)
Register special dp callback function
OPERATE_RET smart_frame_init(VOID)
Smart frame init
DP_CNTL_S * sf_dp_data_get(IN CHAR_T *id, IN CONST uint8_t dp_id)
Get dp control information
VOID sf_start_sync_obj_dp(VOID)
Start to synchronize dp data
OPERATE_RET ty_dp_report(IN CONST DP_REPT_TYPE_E dp_rept_type, IN VOID_T *dp_rept)
Report dp data
OPERATE_RET sf_send_gw_dev_cmd(IN SF_GW_DEV_CMD_S *gd_cmd)
Send dp command
OPERATE_RET sf_dp_low_power_query(IN CONST UCHAR_T *dps, IN CONST UINT_T cnt, OUT TY_RECV_OBJ_DP_S **obj_dps, OUT TY_RECV_MULTI_RAW_DP_S **raw_dps)
Query dp for low power
BOOL_T ty_check_dpid_need_rept(CHAR_T *dev_id, BYTE_T dpid, DP_CMD_TYPE_E type, DP_DESC_IF_S *dp_desc)
check dp id need report
BOOL_T sf_dp_data_is_equl(IN ty_cJSON *dp_cmd)
Check the dp data is same
OPERATE_RET sf_subdev_register_cb(IN SF_SUBDEV_HANDLE_CB_S *cbs)
Register callback function for subdevice
OPERATE_RET sf_respone_obj_dp_query(IN UINT_T cmd_tp, IN CONST ty_cJSON *pCidArr, IN CONST ty_cJSON *pDpIdArr)
Response for dp query
VOID_T ty_print_dp_time(VOID_T)
Print the key time for dp report
Definition of dp control
Definition: gw_intf.h:293
Definition of dp description
Definition: tuya_cloud_com_defs.h:392
Definition of DP handlers
Definition: tuya_cloud_com_defs.h:644
info of dp command
Definition: smart_frame.h:24
callback function of subdevice handle
Definition: smart_frame.h:215
dp data information
Definition: smart_frame.h:240
dp data report information for object type
Definition: smart_frame.h:249
Definition of structured dp
Definition: tuya_cloud_com_defs.h:448
dp data report information for raw type
Definition: smart_frame.h:273
Definition of recved raw dp
Definition: tuya_cloud_com_defs.h:544
Definition of recved structured dp
Definition: tuya_cloud_com_defs.h:494
dp data report information for statistic type
Definition: smart_frame.h:261
Definition of device control info
Definition: gw_intf.h:385
info of dp message data
Definition: smart_frame.h:32
Definition: ty_cJSON.h:104