emsApplication/applications/ems_beehub
HwangKC a386d0c62b init 2024-05-24 12:19:45 +08:00
..
BeeHub init 2024-05-24 12:19:45 +08:00
docs init 2024-05-24 12:19:45 +08:00
example init 2024-05-24 12:19:45 +08:00
.gitignore init 2024-05-24 12:19:45 +08:00
readme.txt init 2024-05-24 12:19:45 +08:00

readme.txt

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

说明
1、服务器端beehubs用来收集ems设备上传的id信息用于了解有哪些ems设备已经连线收集上来的信息目前暂时保存log文件中需要将其记录的数据库中给平台增加相关的展示、监控功能服务器端的log生成在/data01/logs/beehubs.log,每10MB滚动1次保存5个log
启动脚本
./beehubs 0.0.0.0:8797 >/dev/null 2>&1 &

2、beehubc 为客户端安装在ems设备端需要设置开机后自动运行每隔固定时间循环向服务器上报id信息目的是显示本机是否在线本机的设备id保存在/dev/devid
./beehubc 139.196.5.21:8797 3 >/dev/null 2>&1 &


3、需要libzmq\libzmqpp\libsodium\spdlog库支持


编译脚本
g++ -o beehubc beehubc.cpp -I/usr/local/include -std=c++11 -lpthread -L/usr/local/lib -lzmq -lzmqpp -lsodium
g++ -o beehubs beehubs.cpp -I/usr/local/include -std=c++11 -lpthread -L/usr/local/lib -lzmq -lzmqpp -lsodium
arm-g++ -o beehubc-arm beehubc.cpp -I/usr/local/arm/zmq/include -std=c++11 -lpthread -L/usr/local/arm/zmq/lib -lzmq -lzmqpp