Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
e55be185
Commit
e55be185
authored
Feb 21, 2022
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群组新增与网关的交互
parent
a7365000
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1105 additions
and
374 deletions
+1105
-374
midware/midware/dm/kk_linkkit.c
midware/midware/dm/kk_linkkit.c
+1
-374
midware/midware/dm/kk_sub_db.h
midware/midware/dm/kk_sub_db.h
+1
-0
midware/midware/group/kk_group_db.c
midware/midware/group/kk_group_db.c
+469
-0
midware/midware/group/kk_group_db.h
midware/midware/group/kk_group_db.h
+25
-0
midware/midware/group/kk_group_handle.c
midware/midware/group/kk_group_handle.c
+566
-0
midware/midware/group/kk_group_handle.h
midware/midware/group/kk_group_handle.h
+43
-0
No files found.
midware/midware/dm/kk_linkkit.c
View file @
e55be185
This diff is collapsed.
Click to expand it.
midware/midware/dm/kk_sub_db.h
View file @
e55be185
...
@@ -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
,
...
...
midware/midware/group/kk_group_db.c
0 → 100644
View file @
e55be185
This diff is collapsed.
Click to expand it.
midware/midware/group/kk_group_db.h
0 → 100644
View file @
e55be185
#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
midware/midware/group/kk_group_handle.c
0 → 100644
View file @
e55be185
This diff is collapsed.
Click to expand it.
midware/midware/group/kk_group_handle.h
0 → 100644
View file @
e55be185
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment