4#include "tuya_cloud_types.h"
8#if defined(ENABLE_MATOP) && (ENABLE_MATOP==1)
17} mqtt_atop_response_t;
28typedef OPERATE_RET(*MQTT_ATOP_RESPONSE_CB)(mqtt_atop_response_t *response, VOID *user_data);
34VOID tuya_matop_init();
41BOOL_T tuya_matop_is_ready();
55OPERATE_RET tuya_matop_request_async(CONST CHAR_T *api_name,
56 CONST CHAR_T *api_ver,
58 CONST CHAR_T *data_other,
60 MQTT_ATOP_RESPONSE_CB notify_cb,
75OPERATE_RET tuya_matop_request_sync(CONST CHAR_T *api_name,
76 CONST CHAR_T *api_ver,
78 CONST CHAR_T *data_other,
80 MQTT_ATOP_RESPONSE_CB notify_cb,
94OPERATE_RET tuya_matop_request_sync_simple(CONST CHAR_T *api_name,
95 CONST CHAR_T *api_ver,
97 CONST CHAR_T *data_other,
114#define matop_service_request_legacy(api_name, api_ver, uuid, devid, post_data, p_head_other, pp_result) \
115 ((void)uuid, (void)devid, \
116 tuya_matop_request_sync_simple(api_name, api_ver, post_data, p_head_other, 0, pp_result))
128#define matop_service_request_legacy_simple(api_name, api_ver, post_data, p_head_other, pp_result) \
129 tuya_matop_request_sync_simple(api_name, api_ver, post_data, p_head_other, 0, pp_result)
144OPERATE_RET matop_service_file_download_range(CONST CHAR_T* url,
148 CONST CHAR_T *data_other,
149 MQTT_ATOP_RESPONSE_CB notify_cb,
164OPERATE_RET matop_service_file_download_simple(CONST CHAR_T* url,
168 CONST CHAR_T *data_other,
Definition: ty_cJSON.h:104