Commit 03249c47 authored by Ivan Tyagov's avatar Ivan Tyagov

Release 0.0.2.

Update CLI arguments' descriptions.
parent c98bc7e0
......@@ -31,31 +31,31 @@
/*
* Command Line Interface handling.
*/
const char *argp_program_version = "rPLC coupler 0.0.1 (http://rplc.nexedi.com)";
const char *argp_program_version = "rPLC coupler 0.0.2 (http://rplc.nexedi.com)";
const char *argp_program_bug_address = "info@nexedi.com";
static char doc[] = "rPLC coupler server which controls MOD-IO's relays' state over OPC-UA protocol.";
static char doc[] = "rPLC coupler OPC UA server.";
static char args_doc[] = "...";
static struct argp_option options[] = {
{"port", 'p', "4840", 0, "Port to bind to.", 0},
/*
{"server-ip-address", 'a', "", 0, "[not yet available] Server address to bind to.", 0},
{"device", 'd', "/dev/i2c-1", 0, "Linux block device path.", 0},
*/
{"device", 'd', "/dev/i2c-1", 0, "Linux' I2C bus device path.", 0},
{"slave-address-list", 's', "0x58", 0, "Comma separated list of slave I2C addresses.", 0},
{"mode", 'm', "0", 0, "Set different modes of operation of coupler. Default (0) is set attached \
I2C's state state. Virtual (1) which does NOT set any I2C slaves' state.", 0},
{"username", 'u', "", 0, "Username.", 0},
{"password", 'w', "", 0, "Password.", 0},
{"key", 'k', "", 0, "x509 key.", 0},
{"certificate", 'c', "", 0, "X509 certificate.", 0},
{"mode", 'm', "0", 0, "Set different modes of operation of coupler. Default (0) is set attached I2C's state state. Virtual (1) which does NOT set any I2C slaves' state.", 0},
{"username", 'u', "", 0, "OPC UA server username.", 0},
{"password", 'w', "", 0, "OPC UA server password.", 0},
{"key", 'k', "", 0, "OPC UA server x509 key.", 0},
{"certificate", 'c', "", 0, "OPC UA server X509 certificate.", 0},
{"id", 'i', "0", 0, "ID of coupler.", 0},
{"heart-beat", 'b', "0", 0, "Publish heart beat to other couplers.", 0},
{"heart-beat-interval", 't', "50", 0, "Heart beat interval in ms.", 0},
{"heart-beat-timeout-interval",
'o', "100", 0, "Heart beat timeout interval in ms.", 0},
{"heart-beat-id-list", 'l', "", 0, "Comma separated list of IDs of couplers to watch for heart beats. \
If a heart beat is missing coupler goes to safe mode.", 0},
{"heart-beat-id-list", 'l', "", 0, "Comma separated list of IDs of couplers to watch for heart beats. If a heart beat is missing coupler goes to safe mode.", 0},
{"network-address-url-data-type",
'n', "opc.udp://224.0.0.22:4840/", 0, "Network address URL type used for Pub/Sub.", 0},
{"network-interface", 'j', "", 0, "Network interface to use for Pub/Sub.", 0},
'n', "opc.udp://224.0.0.22:4840/", 0, "Network address URL type used for Pub / Sub.", 0},
{"network-interface", 'j', "", 0, "Network interface to use for Pub / Sub.", 0},
{0}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment