Documentation

Documentation

Includes

stdint.h

#include "stdint.h"
#include "stdint.h"

tuya_cloud_types.h

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

tuya_cloud_com_defs.h

#include "tuya_cloud_com_defs.h"
#include "tuya_cloud_com_defs.h"

mf_test.h

#include "mf_test.h"
#include "mf_test.h"

Macros

Marco ___PROD_TEST_H__

#define ___PROD_TEST_H__

      

Functions

Func autotest_prod_start

OPERATE_RET autotest_prod_start(autotest_prod_cfg_t *cfg);
/*============================ PROTOTYPES ====================================*/

Func prodtest_identify_listen_start

int prodtest_identify_listen_start(char *app_name, char *app_version);


      

Func prodtest_identify_listen_stop

int prodtest_identify_listen_stop(void);


      

Func prodtest_ssid_scan

bool prodtest_ssid_scan(uint32_t timeout);


      

Func prodtest_app_register

int prodtest_app_register(const prodtest_app_cfg_t *app_cfg);

      

Vars

Consts

Types

Typedefs

Typedef prodtest_ssid_info_t;

typedef struct {
   char       ssid[32 + 1];
   signed char rssi;
} prodtest_ssid_info_t;
/*============================ TYPES =========================================*/

Typedef prodtest_app_cb_t

typedef OPERATE_RET (*prodtest_app_cb_t)(int flag, prodtest_ssid_info_t *info, uint8_t info_count);


      

Typedef prodtest_app_cfg_t;

typedef struct {
   GW_WF_CFG_MTHD_SEL             gwcm_mode;
   uint8_t                        ssid_count;
   const char                   **ssid_list;
   prodtest_app_cb_t              app_cb;
   MF_USER_PRODUCT_TEST_CB        product_cb; 
   char                          *file_name;
   char                          *file_ver;
} prodtest_app_cfg_t;


      

Typedef autotest_prod_cfg_t;

typedef struct {
   MF_USER_PRODUCT_TEST_CB        product_cb; 
   char                          *file_name;
   char                          *file_ver;
} autotest_prod_cfg_t;