#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"

#define KK_REPORT_DEVICE_JOINED_TYPE						"/thing/topo/add"
#define KK_REPORT_ATTRIBUTE_TYPE						    "/thing/event/property/post"

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

#define TEST_PRODUCT_CODE "24"


cJSON *rpc_Control(jrpc_context * ctx, cJSON * params, cJSON *id,cJSON *mac);
cJSON *rpc_read_attribue(jrpc_context * ctx, cJSON * params, cJSON *id,cJSON *mac);
int lightStatusSet(jrpc_context * ctx,const char *mac,void* data);



#define RPC_KK_TEST_FUNCTION_TABLE	\
	{(rpc_function*)rpc_Control,"/thing/service/property/set"},\
	{(rpc_function*)rpc_Control,KK_READ_ATTRIBUTE_METHOD},\
	{(rpc_function*)rpc_nwkPermitJoin,"/thing/service/NetChannelState/set"}

	


















#endif
