#ifndef _KK_ZIGBEE_MAP_H_
#define _KK_ZIGBEE_MAP_H_
#include "RPC_API.h"
#include "kk_tsl_common.h"

#define PROPERTIES_MAX_NUM 20

typedef int (*zigbee_property_set)(jrpc_context * ctx,const char *mac,unsigned char ep,void* data);
typedef int(*kk_zigbee_property_report)(EmberEUI64 eui64,uint8_t EP,EmberAfClusterId clusterId,EmberAfAttributeId attributeId,uint8_t dataType,uint8_t len,uint8_t *data);

typedef struct{
	int type;
	char* Identity;
	unsigned char endpoint;
	zigbee_property_set zigbee_set;
	unsigned short clusterId;
	unsigned short attributeId;
	kk_zigbee_property_report zigbee_report;
}kk_zigbee_ctrl_map_t;

typedef struct{
	char *productCode;
	int num;
	kk_zigbee_ctrl_map_t  zigbee_ctrl[PROPERTIES_MAX_NUM];
}kk_tsl_zigbee_map_t;

#endif
