Demeter CPE Agent is a daemon application for DSL devices to communicate with Demeter server
- Establish communications between Demeter server and DSL devices via WebSocket
- Convert commands from Demeter server to ubus on DSL devices
- Install Go command line environment
- Build the project by
go build
directly or cross-build for specific target platform by cpe_agent/Makefile
, e.g. For ARM version 7 platform:
$ cd cpe_agent
$ make arm.v7
- Adjust the configuration file in
conf/cpe_agent.yaml
Key Name |
Description |
host |
Address of your Demeter server |
port |
TCP port of your Demeter server |
path |
WebSocket endpoint of your Demeter server |
enableSSL |
Specific the SSL of WebSocket endpoint should be enabled or not |
folder |
Folder path where the log file will be placed |
rotateCount |
Log file auto rotate count |
- Launch CPE agent
$ ./cpe_agent -c ./conf/cpe_agent.yaml
- Command line arguments
Argument |
Description |
h |
Show help |
v |
Show version information |
d |
Launch agent application as a background daemon |
c |
Specific path of configuration file |