mqtt_conf - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > comms


DESCRIPTION

The mqtt_conf utility is not relevant to systems running AWS Greengrass.

The INHIBIT_PUBLISHING field determines whether the MQTT client will publish messages. If inhibit is set to true, then the client will continue to accept messages and echo these to stdout if required, but will not publish. This setting is useful when the device is used in an offline mode - in this case data is typically written to a CSV file.

The REPORT_FILE parameter, if set, indicates where the latest queue length value should be stored.

If DEBUG is set to 1 (true), then extra logging will be written to stderr by the MQTT client.

The MQTT client must be restarted for changes to take effect.

WARNING: if inhibit publishing is set to true, the MQTT client will still subscribe as specified, but will not publish receipts or responses.

SYNOPSIS

mqtt_conf.py { [-i { 0 | 1 }] [-l { 0 | 1 }] | -d } [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-i INHIBIT_PUBLISHING, --inhibit-pub=INHIBIT_PUBLISHING inhibit publishing (1) or enable (0)
-l DEBUG, --debug=DEBUG set debug logging (default is 0)
-d, --delete revert to the default MQTT configuration
-v, --verbose report narrative to stderr

EXAMPLES

./mqtt_conf.py -i 0 -l 1

DOCUMENT EXAMPLE

{"inhibit-publishing": false, "debug": true}

FILES

~/SCS/conf/mqtt_conf.json

SEE ALSO

scs_dev/aws_mqtt_client
scs_dev/display