#ifndef _KK_TEST_H
#define _KK_TEST_H
#include "rpc_network_operate.h"
#include "network-creator.h"
#include "network-creator-security.h"
#include "RPC_API.h"
#include "com_api.h"
#include "zb_device_id.h"
#include "kk_device_manager.h"
#include "kk_zigbee_api.h"
#include "kk_tsl_property_report.h"
#include "kk_tsl_property_set.h"
#include "kk_msg_report.h"
#include "kk_device_table_db.h"
#include "sub_device_manage.h"


#define KK_REPORT_DEVICE_JOINED_TYPE						"/thing/topo/add"
#define KK_REPORT_DEVICE_LEFT_TYPE						    "/thing/topo/delete"
#define KK_REPORT_ATTRIBUTE_TYPE						    "/thing/event/property/post"
#define KK_REPORT_ALARM_TYPE						    	"/thing/event/alarm/post"
#define KK_DEVICE_TOPO_CHANGE_TYPE						    "/thing/topo/change"

#define KK_IPC_VERSION										"1.0"
#define KK_REPORT_DEVICE_JOINED_METHOD						"thing.topo.add"
#define KK_REPORT_DEVICE_LEAVE_METHOD						"thing.topo.delete"
#define KK_REPORT_ATTRIBUTE_METHOD							"thing.event.property.post"
#define KK_READ_ATTRIBUTE_METHOD							"thing.service.property.get"

#define ZIGBEE_COO_PRODUCT_CODE "2"

#define TEST_PRODUCT_CODE "24"

#define MSG_TOPO_CHANGE_TYPE_STR  "changeType"
#define MSG_TOPO_CHANGE_DEVICES_STR  "devices"




int kk_zcl_onoff_set(jrpc_context * ctx,const char *mac,unsigned char ep,void* data);

									
extern cJSON *kk_tsl_get_property_operation(jrpc_context * ctx, cJSON *params, cJSON *id,cJSON *mac);

#define RPC_KK_TEST_FUNCTION_TABLE	\
	{(rpc_function*)kk_tsl_property_operation,"/thing/service/property/set"},\
	{(rpc_function*)kk_tsl_get_property_operation,KK_GET_PROPERTY_MSG_TYPE},\
	{(rpc_function*)kk_tsl_property_operation,KK_READ_ATTRIBUTE_METHOD},\
	{(rpc_function*)kk_topo_change_operation,KK_DEVICE_TOPO_CHANGE_TYPE}


	





















#endif
