Commit 942006cb authored by chen.weican's avatar chen.weican

【修改内容】增加空调内机多控功能

【提交人】陈伟灿
parent d4fa60b3
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include "kk_group_db.h" #include "kk_group_db.h"
#include "kk_alarm_handle.h" #include "kk_alarm_handle.h"
#include "kk_history_db.h" #include "kk_history_db.h"
#include "kk_mutictrl_handle.h"
int g_timezone = 8; int g_timezone = 8;
char * g_filerToPlatTable[] = char * g_filerToPlatTable[] =
...@@ -2136,6 +2137,7 @@ int main(const int argc, const char **argv) ...@@ -2136,6 +2137,7 @@ int main(const int argc, const char **argv)
kk_group_db_init(); kk_group_db_init();
kk_motor_bind_db_init(); kk_motor_bind_db_init();
kk_scene_init(); kk_scene_init();
kk_mutictrl_init();
g_timezone = HAL_Get_TimeZone(); g_timezone = HAL_Get_TimeZone();
mid_ctx->g_mid_dispatch_thread_running = 1; mid_ctx->g_mid_dispatch_thread_running = 1;
......
This diff is collapsed.
#ifndef __KK_MUTICTRL_HANDLE_H__ #ifndef __KK_MUTICTRL_HANDLE_H__
#define __KK_MUTICTRL_HANDLE_H__ #define __KK_MUTICTRL_HANDLE_H__
#include "cJSON.h" #include "cJSON.h"
#include "klist.h"
typedef struct{ typedef struct{
char sceneId[16]; char sceneId[16];
char deviceCode[32];
int epNum;
int count;
time_t timestamp; time_t timestamp;
}mutictrl_timestamp_t; struct list_head linked_list;
}mutictrl_record_t;
typedef struct {
void *mutex;
void *g_mutictrl_thread;
struct list_head mutictrl_list;
} dm_mutictrl_ctx;
int kk_virtual_mutictrl_check(const char*deviceCode,cJSON *param); int kk_virtual_mutictrl_check(const char*deviceCode,cJSON *param);
int kk_manual_mutictrl_execute(const char*deviceCode,cJSON *param); int kk_manual_mutictrl_execute(const char*deviceCode,cJSON *param);
int kk_mutictrl_init(void);
#endif #endif
\ No newline at end of file
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