Commit e55be185 authored by 尹佳钦's avatar 尹佳钦

群组新增与网关的交互

parent a7365000
This diff is collapsed.
...@@ -45,6 +45,7 @@ int kk_get_screenDev_info(ScreenDevInfo_t *devInfo,char*serialId); ...@@ -45,6 +45,7 @@ int kk_get_screenDev_info(ScreenDevInfo_t *devInfo,char*serialId);
int kk_subDev_getDeviceCodes_byProductType(DeviceCode_t *list,char *type); int kk_subDev_getDeviceCodes_byProductType(DeviceCode_t *list,char *type);
int kk_indoor_air_action_add(char *propertyValue,char* deviceCode,int delay,char*gwDeviceCode,char *sceneId,char *type,int epnum); int kk_indoor_air_action_add(char *propertyValue,char* deviceCode,int delay,char*gwDeviceCode,char *sceneId,char *type,int epnum);
int kk_subDev_update_fatherDeviceCode(char *fatherDeviceCode,const char *deviceCode); int kk_subDev_update_fatherDeviceCode(char *fatherDeviceCode,const char *deviceCode);
int kk_subDev_find_fatherDeviceCode(const char *deviceCode,char *fatherDeviceCode);
enum{ enum{
DB_SUB_IDX = 0, DB_SUB_IDX = 0,
......
This diff is collapsed.
#ifndef __KK_GROUP_DB_H__
#define __KK_GROUP_DB_H__
#include "cJSON.h"
enum{
GROUP_INFO_DB_ID = 0,
GROUP_INFO_DB_NAME,
GROUP_INFO_DB_CCUROOMID,
};
enum{
GROUP_DEVICE_DB_ID = 0,
GROUP_DEVICE_DB_EPNUM,
GROUP_DEVICE_DB_DEVICECODE,
GROUP_DEVICE_DB_PARENT_DEVICECODE,
};
int kk_group_db_init(void);
int kk_group_db_insert(const char* groupId,const char* groupName,const char* ccuRoomId,const char* epNum,const char* deviceCode,const char* parent);
int kk_group_db_delete(const char* groupId);
cJSON *kk_group_db_query(int isSync);
cJSON *kk_group_device_db_exe_act(const char *groupId,int controlType,int propertyValue,char *parent);
int kk_group_device_db_find_parent(const char *groupId,char *parent);
#endif
This diff is collapsed.
#ifndef __KK_GROUP_HANDLE_H
#define __KK_GROUP_HANDLE_H
#include "kk_tsl_common.h"
#include "sqlite3.h"
#include "kk_log.h"
#include "kk_scene_db.h"
#include "cJSON.h"
#include "kk_tsl_api.h"
#include "kk_dm_mng.h"
int kk_service_addGroup_handle(cJSON *root,cJSON *param,cJSON *msgId);
int kk_service_updateGroup_handle(cJSON *root,cJSON *param,cJSON *msgId);
int kk_service_deleteGroup_handle(cJSON *root,cJSON *param,cJSON *msgId);
int kk_service_queryGroup_handle(cJSON *root,cJSON *msgId);
int kk_service_executeGroup_handle(cJSON *info_root,cJSON *param,cJSON *msgId);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment