
#ifndef __KK_PRODUCT_H__
#define __KK_PRODUCT_H__
#include <stdio.h>

#ifndef _IN_
    #define _IN_
#endif

#ifndef _OU_
    #define _OU_
#endif

#define PRODUCT_TYPE_LEN         (32+1)
#define PRODUCT_CODE_LEN         (32+1)
#define DEVICE_CODE_LEN          (32+1)
#define MAC_ADDR_LEN_MAX            (10)
#define PID_STRLEN_MAX              (64)
#define MID_STRLEN_MAX              (64)
#define IOTX_URI_MAX_LEN            (135)  /* IoTx CoAP/HTTP uri & MQTT topic maximal length */
#define PID_STR_MAXLEN              (64)
#define MID_STR_MAXLEN              (64)
#define PRODUCT_SECRET_MAXLEN       (64 + 1)
#define FIRMWARE_VERSION_MAXLEN     (32 + 1)
#define VERSION_MAXLEN     (32 + 1)
#define HAL_CID_LEN                 (64 + 1)
#define NETWORK_ADDR_LEN        (16+1)        /* IP�����ַ�ĳ��� */
#define MAC_ADDR_LEN        (17+1)        
#define SN_ADDR_LEN        (32+1)

#define PRODUCT_TPYE  "kk"
#define CCU_LAN  "eth0"
#define KK_CCU_ID    "CCU_77771"
#define KK_CCU_PRODUCTID    "ccu_n12"
#define KK_GW_PRODUCTID    "gateway_2"
#define KK_CCU_RANDOM    "0000000000"
#define KK_CCU_NAME      "NEW_CCU"
#define KK_DEVICE_MAP_FILE_PATH      "/data/kk/map/device_%s.json"
#define GET_CCUID_CMD               "fw_printenv uuid -n"
#define GET_KEY_CMD                 "fw_printenv key -n"
#define KK_DB_FILE                  "/data/kk/kk_database.db"
#define TSL_SUBDEVICE_PATH_FILE     "/data/kk/tsl/product_%s.json"
#define TSL_GATEWAY_PATH_FILE       "/data/kk/tsl/gateway_%s.json"
#define TSL_CCU_PATH_FILE           "/data/kk/tsl/ccu_%s.json"
#define TSL_SCENE_PATH_FILE         "/data/kk/tsl/ccu_%s_scene.json"
#define OTA_IMG_PATH                "/data/OTA/"
#define OTA_IMG_FILE                "/data/OTA/app_squashfs.img"
#define OTA_IMG_FILE_MD5            "/data/OTA/app_squashfs.img.md5"
enum {
    DEVICE_OFFLINE = 0,
    DEVICE_ONLINE,
    DEVICE_UNKNOW,
};






#endif
