| | |
| | | #include "3rdparty/bus_client/cbhomeclient.h" |
| | | #include "3rdparty/bus_client/message.h" |
| | | |
| | | #include "sysset.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" |
| | | |
| | | |
| | | int main(int argc, char const *argv[]) |
| | |
| | | printf("bus_client_init end\n"); |
| | | |
| | | |
| | | // 接口测试 |
| | | protomsg::LocalConfig node; |
| | | if (dbapi_get_server_info(handle, node)) { |
| | | printf("LocalConfig: %s\n", node.alarm_ip().c_str()); |
| | | } |
| | | // 服务器配置 sysset.pb.h |
| | | // protomsg::LocalConfig node; |
| | | // if (dbapi_get_server_info(handle, node)) { |
| | | // printf("LocalConfig: %s\n", node.alarm_ip().c_str()); |
| | | // } |
| | | |
| | | printf("bus_dbapi_get_server_info end\n"); |
| | | // 轮询配置 sysset.pb.h |
| | | // protomsg::PollConfig node; |
| | | // if (dbapi_get_poll_config(handle, node)) { |
| | | // printf("PollConfig: %s\n", node1.server_id().c_str()); |
| | | // } |
| | | |
| | | // 数据栈配置 fileanalysis.pb.h |
| | | // 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; |
| | | } |