Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.54 KB

readme.md

File metadata and controls

55 lines (33 loc) · 1.54 KB

Building

Prereqs

 brew install gcc49
 source ./ci/install_boost.sh
 ./ci/build_boost.sh
 export DYLD_LIBRARY_PATH=$BOOST_ROOT/stage/lib

alternatively (for windows):

sudo ./bjam --install --link=static --runtime-link=static --layout=tagged --with-system threading=single architecture=x86

Building

cd main
make -s PRODUCT_ID=3

The resulting executable is placed in build/target/main/platform-3/main.

Device Configuration

Configuration Sources

The device can be configured using any of these sources:

  • command line arguments: to see the list of command line arguments supported, run with --help
  • configuration file: the file vdev.conf is read from the current directory if it exists.
  • environment variables: the names above are turned into environment variables by making them uppercase, and prefixing with VDEV_. For example, the device id is configured with the environment variable VDEV_DEVICE_ID

Configuration Values

The virtual device is configured using keys and values.

Name Description
device_id the unique ID for this device, maximum 12 digits
device_key the file containing the device's private key
server_key the file containing the cloud public key
protocol tcp or udp