Fix readme code snipplet

This commit is contained in:
Simon Stürz 2019-01-11 00:06:24 +01:00
parent cde075d09d
commit 8fe6f677bd

View File

@ -53,41 +53,41 @@ this repository and it will be installed to /etc/nymea-networkmanager.conf with
$ nymea-network-manager --help $ nymea-network-manager --help
Usage:nymea-networkmanager [options] Usage:nymea-networkmanager [options]
This daemon allows to configure a wifi network using a bluetooth low energy connection. This daemon allows to configure a wifi network using a bluetooth low energy connection.
Copyright © 2018 - 2019 Simon Stürz <simon.stuerz@guh.io> Copyright © 2018 - 2019 Simon Stürz <simon.stuerz@guh.io>
Options: Options:
-h, --help Displays this help. -h, --help Displays this help.
-v, --version Displays version information. -v, --version Displays version information.
-d, --debug Enable more debug output. -d, --debug Enable more debug output.
-a, --advertise-name <NAME> The name of the bluetooth -a, --advertise-name <NAME> The name of the bluetooth
server. Default "BT WLAN setup". server. Default "BT WLAN setup".
-p, --platform-name <NAME> The name of the platform this -p, --platform-name <NAME> The name of the platform this
daemon is running. Default daemon is running. Default
"nymea-box". "nymea-box".
-t, --timeout <SECONDS> The timeout of the bluetooth -t, --timeout <SECONDS> The timeout of the bluetooth
server. Minimum value is 10. server. Minimum value is 10.
Default "60". Default "60".
-m, --mode <offline | once | always | start> Run the daemon in a specific -m, --mode <offline | once | always | start> Run the daemon in a specific
mode. Default is "offline". mode. Default is "offline".
- offline: this mode starts the - offline: this mode starts the
bluetooth server once the device bluetooth server once the device
is offline and not connected to is offline and not connected to
any LAN network. any LAN network.
- once: this mode starts the - once: this mode starts the
bluetooth server only if no bluetooth server only if no
network configuration exists. network configuration exists.
Once a network connection exists Once a network connection exists
the server will never start the server will never start
again. again.
- always: this mode enables the - always: this mode enables the
bluetooth server as long the bluetooth server as long the
application is running. application is running.
- start: this mode starts the - start: this mode starts the
bluetooth server for 3 minutes bluetooth server for 3 minutes
on start and shuts down after a on start and shuts down after a
connection. connection.