cheliequan
2023-01-12 19364a2cc1bdba9c8e8296df0d06cee336d187e6
main.cpp
@@ -9,8 +9,7 @@
#include "3rdparty/bus_client/cbhomeclient.h"
#include "3rdparty/bus_client/message.h"
#include "sysset.h"
#include "rule.h"
#include "dbapi.h"
#include "proto/x86_64/sysset.pb.h"
#include "proto/x86_64/fileanalysis.pb.h"
#include "proto/x86_64/protomsg.pb.h"
@@ -42,9 +41,15 @@
    // }
    // 数据栈配置 fileanalysis.pb.h
    protomsg::FileAnalysisSetting node;
    if (dbapi_get_stack_config(handle, node)) {
        printf("StackConfig: %s\n", node.filedirectory().c_str());
    // protomsg::FileAnalysisSetting node;
    // if (dbapi_get_stack_config(handle, node)) {
    //     printf("StackConfig: %s\n", node.filedirectory().c_str());
    // }
    // 时间规则
    std::vector<protomsg::CameraTimerule> list;
    if (dbapi_get_time_rules(handle, list)) {
        printf("CameraTimerule:\n");
    }
    return 0;