mosquitto_sub –d –t armtronix_mqtt Error: Unknown option '–d'kernel: bcm2708_fb soc:fb: Unknown ioctl...

How to choose using Collection<Id> rather than Collection<String>, or the opposite?

Bouncing map back into its bounds, after user dragged it out

My employer is refusing to give me the pay that was advertised after an internal job move

Did Vladimir Lenin have a cat?

Is there a word or phrase that means 'works but not for the reason we expect it to'?

How to prevent a single-element caster from being useless against immune foes?

Spider-Man and Fantastic 4 crossover comic with Double Identity Scene

What are the closest international airports in different countries?

What clothes would flying-people wear?

Typesetting numbers above, below, left, and right of a symbol

Why didn't Stark and Nebula use jump points with their ship to go back to Earth?

PCB design using code instead of clicking a mouse?

Should students have access to past exams or an exam bank?

Why did some Apollo missions carry a grenade launcher?

Why tantalum for the Hayabusa bullets?

Is it possible for a particle to decay via gravity?

How do you deal with characters with multiple races?

How did astronauts using rovers tell direction without compasses on the Moon?

What is this kind of symbol meant to be?

Do professors like answering questions from non-students/private citizens?

Should 2FA be enabled on service accounts?

Rampant sharing of authorship among colleagues in the name of "collaboration". Is not taking part in it a death knell for a future in academia?

Boots or trail runners with reference to blisters?

What is my clock telling me to do?



mosquitto_sub –d –t armtronix_mqtt Error: Unknown option '–d'


kernel: bcm2708_fb soc:fb: Unknown ioctl 0x40187a22Using PCSCD with ACR122U errorSSMTP Delivery ErrorFailed to get D-Bus connection: unknown error -1Hostapd on raspberrypi nl80211 errorCups dependency error in RaspbianKiosk Gui, but not limited to WebBrowsingError when automating type option via xdotoolRestart mosquitto - Unknown operation mosquittoRaspberry Pi Zero W, Pi camera with motion error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















What information can be gleaned for corrective action to enable subscription to the example MQTT topic?



The goal is to reproduce the test (subscribe & publish), per the instruction's Step 3: an MQTT server was installed and attempts to subscribe with MQTT Client fails:



pi@raspberrypi:~ $ mosquitto_sub –d –t armtronix_mqtt

**Error: Unknown option '–d'.**

Use 'mosquitto_sub --help' to see usage.


Help Page:



pi@raspberrypi:~ $ mosquitto_sub --help
mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it receives.
mosquitto_sub version 1.4.10 running on libmosquitto 1.4.10.

Usage: mosquitto_sub [-c] [-h host] [-k keepalive] [-p port] [-q qos] [-R] -t topic ...
[-C msg_count] [-T filter_out]
[-A bind_address] [-S]
[-i id] [-I id_prefix]
[-d] [-N] [--quiet] [-v]
[-u username [-P password]]
[--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]
[{--cafile file | --capath dir} [--cert file] [--key file]
[--ciphers ciphers] [--insecure]]
[--psk hex-key --psk-identity identity [--ciphers ciphers]]
[--proxy socks-url]
mosquitto_sub --help

-A : bind the outgoing socket to this host/ip address. Use to control which interface
the client communicates over.
-c : disable 'clean session' (store subscription and pending messages when client disconnects).
-C : disconnect and exit after receiving the 'msg_count' messages.
-d : enable debug messages.
-h : mqtt host to connect to. Defaults to localhost.
-i : id to use for this client. Defaults to mosquitto_sub_ appended with the process id.
-I : define the client id as id_prefix appended with the process id. Useful for when the
broker is using the clientid_prefixes option.
-k : keep alive in seconds for this client. Defaults to 60.
-N : do not add an end of line character when printing the payload.
-p : network port to connect to. Defaults to 1883.
-P : provide a password (requires MQTT 3.1 broker)
-q : quality of service level to use for the subscription. Defaults to 0.
-R : do not print stale messages (those with retain set).
-S : use SRV lookups to determine which host to connect to.
-t : mqtt topic to subscribe to. May be repeated multiple times.
-T : topic string to filter out of results. May be repeated.
-u : provide a username (requires MQTT 3.1 broker)
-v : print published messages verbosely.
-V : specify the version of the MQTT protocol to use when connecting.
Can be mqttv31 or mqttv311. Defaults to mqttv31.
--help : display this message.
--quiet : don't print error messages.
--will-payload : payload for the client Will, which is sent by the broker in case of
unexpected disconnection. If not given and will-topic is set, a zero
length message will be sent.
--will-qos : QoS level for the client Will.
--will-retain : if given, make the client Will retained.
--will-topic : the topic on which to publish the client Will.
--cafile : path to a file containing trusted CA certificates to enable encrypted
certificate based communication.
--capath : path to a directory containing trusted CA certificates to enable encrypted
communication.
--cert : client certificate for authentication, if required by server.
--key : client private key for authentication, if required by server.
--ciphers : openssl compatible list of TLS ciphers to support.
--tls-version : TLS protocol version, can be one of tlsv1.2 tlsv1.1 or tlsv1.
Defaults to tlsv1.2 if available.
--insecure : do not check that the server certificate hostname matches the remote
hostname. Using this option means that you cannot be sure that the
remote host is the server you wish to connect to and so is insecure.
Do not use this option in a production environment.
--psk : pre-shared-key in hexadecimal (no leading 0x) to enable TLS-PSK mode.
--psk-identity : client identity string for TLS-PSK mode.
--proxy : SOCKS5 proxy URL of the form:
socks5h://[username[:password]@]hostname[:port]
Only "none" and "username" authentication is supported.


MQTT Client install log:



pi@raspberrypi:~ $ sudo apt-get install mosquitto-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libmosquitto1
The following NEW packages will be installed:
libmosquitto1 mosquitto-clients
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 99.5 kB of archives.
After this operation, 222 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libmosquitto1 armhf 1.4.10-3+deb9u4 [47.2 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf mosquitto-clients armhf 1.4.10-3+deb9u4 [52.3 kB]
Fetched 99.5 kB in 1s (86.7 kB/s)
Selecting previously unselected package libmosquitto1:armhf.
(Reading database ... 141867 files and directories currently installed.)
Preparing to unpack .../libmosquitto1_1.4.10-3+deb9u4_armhf.deb ...
Unpacking libmosquitto1:armhf (1.4.10-3+deb9u4) ...
Selecting previously unselected package mosquitto-clients.
Preparing to unpack .../mosquitto-clients_1.4.10-3+deb9u4_armhf.deb ...
Unpacking mosquitto-clients (1.4.10-3+deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmosquitto1:armhf (1.4.10-3+deb9u4) ...
Setting up mosquitto-clients (1.4.10-3+deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...


.list file install for Raspbianbuster:



pi@raspberrypi:~ $ cd /etc/apt/sources.list.d/
pi@raspberrypi:/etc/apt/sources.list.d $ sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
--2019-08-01 00:01:16-- http://repo.mosquitto.org/debian/mosquitto-buster.list
Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50 [application/octet-stream]
Saving to: ‘mosquitto-buster.list’

mosquitto-buster.list 100%[===================================================================>] 50 --.-KB/s in 0s

2019-08-01 00:01:17 (1.14 MB/s) - ‘mosquitto-buster.list’ saved [50/50]

pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
Error: Unknown option '–t'.

Use 'mosquitto_sub --help' to see usage.
pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
mosquitto-clients is already the newest version (1.4.10-3+deb9u4).
The following packages were automatically installed and are no longer required:
coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
Error: Unknown option '–t'.

Use 'mosquitto_sub --help' to see usage.
pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub -d –t armtronix_mqtt
Error: Unknown option '–t'.

Use 'mosquitto_sub --help' to see usage.









share|improve this question































    0















    What information can be gleaned for corrective action to enable subscription to the example MQTT topic?



    The goal is to reproduce the test (subscribe & publish), per the instruction's Step 3: an MQTT server was installed and attempts to subscribe with MQTT Client fails:



    pi@raspberrypi:~ $ mosquitto_sub –d –t armtronix_mqtt

    **Error: Unknown option '–d'.**

    Use 'mosquitto_sub --help' to see usage.


    Help Page:



    pi@raspberrypi:~ $ mosquitto_sub --help
    mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it receives.
    mosquitto_sub version 1.4.10 running on libmosquitto 1.4.10.

    Usage: mosquitto_sub [-c] [-h host] [-k keepalive] [-p port] [-q qos] [-R] -t topic ...
    [-C msg_count] [-T filter_out]
    [-A bind_address] [-S]
    [-i id] [-I id_prefix]
    [-d] [-N] [--quiet] [-v]
    [-u username [-P password]]
    [--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]
    [{--cafile file | --capath dir} [--cert file] [--key file]
    [--ciphers ciphers] [--insecure]]
    [--psk hex-key --psk-identity identity [--ciphers ciphers]]
    [--proxy socks-url]
    mosquitto_sub --help

    -A : bind the outgoing socket to this host/ip address. Use to control which interface
    the client communicates over.
    -c : disable 'clean session' (store subscription and pending messages when client disconnects).
    -C : disconnect and exit after receiving the 'msg_count' messages.
    -d : enable debug messages.
    -h : mqtt host to connect to. Defaults to localhost.
    -i : id to use for this client. Defaults to mosquitto_sub_ appended with the process id.
    -I : define the client id as id_prefix appended with the process id. Useful for when the
    broker is using the clientid_prefixes option.
    -k : keep alive in seconds for this client. Defaults to 60.
    -N : do not add an end of line character when printing the payload.
    -p : network port to connect to. Defaults to 1883.
    -P : provide a password (requires MQTT 3.1 broker)
    -q : quality of service level to use for the subscription. Defaults to 0.
    -R : do not print stale messages (those with retain set).
    -S : use SRV lookups to determine which host to connect to.
    -t : mqtt topic to subscribe to. May be repeated multiple times.
    -T : topic string to filter out of results. May be repeated.
    -u : provide a username (requires MQTT 3.1 broker)
    -v : print published messages verbosely.
    -V : specify the version of the MQTT protocol to use when connecting.
    Can be mqttv31 or mqttv311. Defaults to mqttv31.
    --help : display this message.
    --quiet : don't print error messages.
    --will-payload : payload for the client Will, which is sent by the broker in case of
    unexpected disconnection. If not given and will-topic is set, a zero
    length message will be sent.
    --will-qos : QoS level for the client Will.
    --will-retain : if given, make the client Will retained.
    --will-topic : the topic on which to publish the client Will.
    --cafile : path to a file containing trusted CA certificates to enable encrypted
    certificate based communication.
    --capath : path to a directory containing trusted CA certificates to enable encrypted
    communication.
    --cert : client certificate for authentication, if required by server.
    --key : client private key for authentication, if required by server.
    --ciphers : openssl compatible list of TLS ciphers to support.
    --tls-version : TLS protocol version, can be one of tlsv1.2 tlsv1.1 or tlsv1.
    Defaults to tlsv1.2 if available.
    --insecure : do not check that the server certificate hostname matches the remote
    hostname. Using this option means that you cannot be sure that the
    remote host is the server you wish to connect to and so is insecure.
    Do not use this option in a production environment.
    --psk : pre-shared-key in hexadecimal (no leading 0x) to enable TLS-PSK mode.
    --psk-identity : client identity string for TLS-PSK mode.
    --proxy : SOCKS5 proxy URL of the form:
    socks5h://[username[:password]@]hostname[:port]
    Only "none" and "username" authentication is supported.


    MQTT Client install log:



    pi@raspberrypi:~ $ sudo apt-get install mosquitto-clients
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    libmosquitto1
    The following NEW packages will be installed:
    libmosquitto1 mosquitto-clients
    0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
    Need to get 99.5 kB of archives.
    After this operation, 222 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libmosquitto1 armhf 1.4.10-3+deb9u4 [47.2 kB]
    Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf mosquitto-clients armhf 1.4.10-3+deb9u4 [52.3 kB]
    Fetched 99.5 kB in 1s (86.7 kB/s)
    Selecting previously unselected package libmosquitto1:armhf.
    (Reading database ... 141867 files and directories currently installed.)
    Preparing to unpack .../libmosquitto1_1.4.10-3+deb9u4_armhf.deb ...
    Unpacking libmosquitto1:armhf (1.4.10-3+deb9u4) ...
    Selecting previously unselected package mosquitto-clients.
    Preparing to unpack .../mosquitto-clients_1.4.10-3+deb9u4_armhf.deb ...
    Unpacking mosquitto-clients (1.4.10-3+deb9u4) ...
    Processing triggers for libc-bin (2.24-11+deb9u4) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    Setting up libmosquitto1:armhf (1.4.10-3+deb9u4) ...
    Setting up mosquitto-clients (1.4.10-3+deb9u4) ...
    Processing triggers for libc-bin (2.24-11+deb9u4) ...


    .list file install for Raspbianbuster:



    pi@raspberrypi:~ $ cd /etc/apt/sources.list.d/
    pi@raspberrypi:/etc/apt/sources.list.d $ sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
    --2019-08-01 00:01:16-- http://repo.mosquitto.org/debian/mosquitto-buster.list
    Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
    Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 50 [application/octet-stream]
    Saving to: ‘mosquitto-buster.list’

    mosquitto-buster.list 100%[===================================================================>] 50 --.-KB/s in 0s

    2019-08-01 00:01:17 (1.14 MB/s) - ‘mosquitto-buster.list’ saved [50/50]

    pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
    Error: Unknown option '–t'.

    Use 'mosquitto_sub --help' to see usage.
    pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto-clients
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    mosquitto-clients is already the newest version (1.4.10-3+deb9u4).
    The following packages were automatically installed and are no longer required:
    coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
    Error: Unknown option '–t'.

    Use 'mosquitto_sub --help' to see usage.
    pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub -d –t armtronix_mqtt
    Error: Unknown option '–t'.

    Use 'mosquitto_sub --help' to see usage.









    share|improve this question



























      0












      0








      0








      What information can be gleaned for corrective action to enable subscription to the example MQTT topic?



      The goal is to reproduce the test (subscribe & publish), per the instruction's Step 3: an MQTT server was installed and attempts to subscribe with MQTT Client fails:



      pi@raspberrypi:~ $ mosquitto_sub –d –t armtronix_mqtt

      **Error: Unknown option '–d'.**

      Use 'mosquitto_sub --help' to see usage.


      Help Page:



      pi@raspberrypi:~ $ mosquitto_sub --help
      mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it receives.
      mosquitto_sub version 1.4.10 running on libmosquitto 1.4.10.

      Usage: mosquitto_sub [-c] [-h host] [-k keepalive] [-p port] [-q qos] [-R] -t topic ...
      [-C msg_count] [-T filter_out]
      [-A bind_address] [-S]
      [-i id] [-I id_prefix]
      [-d] [-N] [--quiet] [-v]
      [-u username [-P password]]
      [--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]
      [{--cafile file | --capath dir} [--cert file] [--key file]
      [--ciphers ciphers] [--insecure]]
      [--psk hex-key --psk-identity identity [--ciphers ciphers]]
      [--proxy socks-url]
      mosquitto_sub --help

      -A : bind the outgoing socket to this host/ip address. Use to control which interface
      the client communicates over.
      -c : disable 'clean session' (store subscription and pending messages when client disconnects).
      -C : disconnect and exit after receiving the 'msg_count' messages.
      -d : enable debug messages.
      -h : mqtt host to connect to. Defaults to localhost.
      -i : id to use for this client. Defaults to mosquitto_sub_ appended with the process id.
      -I : define the client id as id_prefix appended with the process id. Useful for when the
      broker is using the clientid_prefixes option.
      -k : keep alive in seconds for this client. Defaults to 60.
      -N : do not add an end of line character when printing the payload.
      -p : network port to connect to. Defaults to 1883.
      -P : provide a password (requires MQTT 3.1 broker)
      -q : quality of service level to use for the subscription. Defaults to 0.
      -R : do not print stale messages (those with retain set).
      -S : use SRV lookups to determine which host to connect to.
      -t : mqtt topic to subscribe to. May be repeated multiple times.
      -T : topic string to filter out of results. May be repeated.
      -u : provide a username (requires MQTT 3.1 broker)
      -v : print published messages verbosely.
      -V : specify the version of the MQTT protocol to use when connecting.
      Can be mqttv31 or mqttv311. Defaults to mqttv31.
      --help : display this message.
      --quiet : don't print error messages.
      --will-payload : payload for the client Will, which is sent by the broker in case of
      unexpected disconnection. If not given and will-topic is set, a zero
      length message will be sent.
      --will-qos : QoS level for the client Will.
      --will-retain : if given, make the client Will retained.
      --will-topic : the topic on which to publish the client Will.
      --cafile : path to a file containing trusted CA certificates to enable encrypted
      certificate based communication.
      --capath : path to a directory containing trusted CA certificates to enable encrypted
      communication.
      --cert : client certificate for authentication, if required by server.
      --key : client private key for authentication, if required by server.
      --ciphers : openssl compatible list of TLS ciphers to support.
      --tls-version : TLS protocol version, can be one of tlsv1.2 tlsv1.1 or tlsv1.
      Defaults to tlsv1.2 if available.
      --insecure : do not check that the server certificate hostname matches the remote
      hostname. Using this option means that you cannot be sure that the
      remote host is the server you wish to connect to and so is insecure.
      Do not use this option in a production environment.
      --psk : pre-shared-key in hexadecimal (no leading 0x) to enable TLS-PSK mode.
      --psk-identity : client identity string for TLS-PSK mode.
      --proxy : SOCKS5 proxy URL of the form:
      socks5h://[username[:password]@]hostname[:port]
      Only "none" and "username" authentication is supported.


      MQTT Client install log:



      pi@raspberrypi:~ $ sudo apt-get install mosquitto-clients
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      libmosquitto1
      The following NEW packages will be installed:
      libmosquitto1 mosquitto-clients
      0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
      Need to get 99.5 kB of archives.
      After this operation, 222 kB of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Get:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libmosquitto1 armhf 1.4.10-3+deb9u4 [47.2 kB]
      Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf mosquitto-clients armhf 1.4.10-3+deb9u4 [52.3 kB]
      Fetched 99.5 kB in 1s (86.7 kB/s)
      Selecting previously unselected package libmosquitto1:armhf.
      (Reading database ... 141867 files and directories currently installed.)
      Preparing to unpack .../libmosquitto1_1.4.10-3+deb9u4_armhf.deb ...
      Unpacking libmosquitto1:armhf (1.4.10-3+deb9u4) ...
      Selecting previously unselected package mosquitto-clients.
      Preparing to unpack .../mosquitto-clients_1.4.10-3+deb9u4_armhf.deb ...
      Unpacking mosquitto-clients (1.4.10-3+deb9u4) ...
      Processing triggers for libc-bin (2.24-11+deb9u4) ...
      Processing triggers for man-db (2.7.6.1-2) ...
      Setting up libmosquitto1:armhf (1.4.10-3+deb9u4) ...
      Setting up mosquitto-clients (1.4.10-3+deb9u4) ...
      Processing triggers for libc-bin (2.24-11+deb9u4) ...


      .list file install for Raspbianbuster:



      pi@raspberrypi:~ $ cd /etc/apt/sources.list.d/
      pi@raspberrypi:/etc/apt/sources.list.d $ sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
      --2019-08-01 00:01:16-- http://repo.mosquitto.org/debian/mosquitto-buster.list
      Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
      Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 50 [application/octet-stream]
      Saving to: ‘mosquitto-buster.list’

      mosquitto-buster.list 100%[===================================================================>] 50 --.-KB/s in 0s

      2019-08-01 00:01:17 (1.14 MB/s) - ‘mosquitto-buster.list’ saved [50/50]

      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.
      pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto-clients
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      mosquitto-clients is already the newest version (1.4.10-3+deb9u4).
      The following packages were automatically installed and are no longer required:
      coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.
      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub -d –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.









      share|improve this question














      What information can be gleaned for corrective action to enable subscription to the example MQTT topic?



      The goal is to reproduce the test (subscribe & publish), per the instruction's Step 3: an MQTT server was installed and attempts to subscribe with MQTT Client fails:



      pi@raspberrypi:~ $ mosquitto_sub –d –t armtronix_mqtt

      **Error: Unknown option '–d'.**

      Use 'mosquitto_sub --help' to see usage.


      Help Page:



      pi@raspberrypi:~ $ mosquitto_sub --help
      mosquitto_sub is a simple mqtt client that will subscribe to a single topic and print all messages it receives.
      mosquitto_sub version 1.4.10 running on libmosquitto 1.4.10.

      Usage: mosquitto_sub [-c] [-h host] [-k keepalive] [-p port] [-q qos] [-R] -t topic ...
      [-C msg_count] [-T filter_out]
      [-A bind_address] [-S]
      [-i id] [-I id_prefix]
      [-d] [-N] [--quiet] [-v]
      [-u username [-P password]]
      [--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]
      [{--cafile file | --capath dir} [--cert file] [--key file]
      [--ciphers ciphers] [--insecure]]
      [--psk hex-key --psk-identity identity [--ciphers ciphers]]
      [--proxy socks-url]
      mosquitto_sub --help

      -A : bind the outgoing socket to this host/ip address. Use to control which interface
      the client communicates over.
      -c : disable 'clean session' (store subscription and pending messages when client disconnects).
      -C : disconnect and exit after receiving the 'msg_count' messages.
      -d : enable debug messages.
      -h : mqtt host to connect to. Defaults to localhost.
      -i : id to use for this client. Defaults to mosquitto_sub_ appended with the process id.
      -I : define the client id as id_prefix appended with the process id. Useful for when the
      broker is using the clientid_prefixes option.
      -k : keep alive in seconds for this client. Defaults to 60.
      -N : do not add an end of line character when printing the payload.
      -p : network port to connect to. Defaults to 1883.
      -P : provide a password (requires MQTT 3.1 broker)
      -q : quality of service level to use for the subscription. Defaults to 0.
      -R : do not print stale messages (those with retain set).
      -S : use SRV lookups to determine which host to connect to.
      -t : mqtt topic to subscribe to. May be repeated multiple times.
      -T : topic string to filter out of results. May be repeated.
      -u : provide a username (requires MQTT 3.1 broker)
      -v : print published messages verbosely.
      -V : specify the version of the MQTT protocol to use when connecting.
      Can be mqttv31 or mqttv311. Defaults to mqttv31.
      --help : display this message.
      --quiet : don't print error messages.
      --will-payload : payload for the client Will, which is sent by the broker in case of
      unexpected disconnection. If not given and will-topic is set, a zero
      length message will be sent.
      --will-qos : QoS level for the client Will.
      --will-retain : if given, make the client Will retained.
      --will-topic : the topic on which to publish the client Will.
      --cafile : path to a file containing trusted CA certificates to enable encrypted
      certificate based communication.
      --capath : path to a directory containing trusted CA certificates to enable encrypted
      communication.
      --cert : client certificate for authentication, if required by server.
      --key : client private key for authentication, if required by server.
      --ciphers : openssl compatible list of TLS ciphers to support.
      --tls-version : TLS protocol version, can be one of tlsv1.2 tlsv1.1 or tlsv1.
      Defaults to tlsv1.2 if available.
      --insecure : do not check that the server certificate hostname matches the remote
      hostname. Using this option means that you cannot be sure that the
      remote host is the server you wish to connect to and so is insecure.
      Do not use this option in a production environment.
      --psk : pre-shared-key in hexadecimal (no leading 0x) to enable TLS-PSK mode.
      --psk-identity : client identity string for TLS-PSK mode.
      --proxy : SOCKS5 proxy URL of the form:
      socks5h://[username[:password]@]hostname[:port]
      Only "none" and "username" authentication is supported.


      MQTT Client install log:



      pi@raspberrypi:~ $ sudo apt-get install mosquitto-clients
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
      coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      libmosquitto1
      The following NEW packages will be installed:
      libmosquitto1 mosquitto-clients
      0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
      Need to get 99.5 kB of archives.
      After this operation, 222 kB of additional disk space will be used.
      Do you want to continue? [Y/n] y
      Get:1 http://raspbian.raspberrypi.org/raspbian stretch/main armhf libmosquitto1 armhf 1.4.10-3+deb9u4 [47.2 kB]
      Get:2 http://raspbian.raspberrypi.org/raspbian stretch/main armhf mosquitto-clients armhf 1.4.10-3+deb9u4 [52.3 kB]
      Fetched 99.5 kB in 1s (86.7 kB/s)
      Selecting previously unselected package libmosquitto1:armhf.
      (Reading database ... 141867 files and directories currently installed.)
      Preparing to unpack .../libmosquitto1_1.4.10-3+deb9u4_armhf.deb ...
      Unpacking libmosquitto1:armhf (1.4.10-3+deb9u4) ...
      Selecting previously unselected package mosquitto-clients.
      Preparing to unpack .../mosquitto-clients_1.4.10-3+deb9u4_armhf.deb ...
      Unpacking mosquitto-clients (1.4.10-3+deb9u4) ...
      Processing triggers for libc-bin (2.24-11+deb9u4) ...
      Processing triggers for man-db (2.7.6.1-2) ...
      Setting up libmosquitto1:armhf (1.4.10-3+deb9u4) ...
      Setting up mosquitto-clients (1.4.10-3+deb9u4) ...
      Processing triggers for libc-bin (2.24-11+deb9u4) ...


      .list file install for Raspbianbuster:



      pi@raspberrypi:~ $ cd /etc/apt/sources.list.d/
      pi@raspberrypi:/etc/apt/sources.list.d $ sudo wget http://repo.mosquitto.org/debian/mosquitto-buster.list
      --2019-08-01 00:01:16-- http://repo.mosquitto.org/debian/mosquitto-buster.list
      Resolving repo.mosquitto.org (repo.mosquitto.org)... 85.119.83.194, 2001:ba8:1f1:f271::2
      Connecting to repo.mosquitto.org (repo.mosquitto.org)|85.119.83.194|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 50 [application/octet-stream]
      Saving to: ‘mosquitto-buster.list’

      mosquitto-buster.list 100%[===================================================================>] 50 --.-KB/s in 0s

      2019-08-01 00:01:17 (1.14 MB/s) - ‘mosquitto-buster.list’ saved [50/50]

      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.
      pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get install mosquitto-clients
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      mosquitto-clients is already the newest version (1.4.10-3+deb9u4).
      The following packages were automatically installed and are no longer required:
      coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.
      pi@raspberrypi:/etc/apt/sources.list.d $ mosquitto_sub -d –t armtronix_mqtt
      Error: Unknown option '–t'.

      Use 'mosquitto_sub --help' to see usage.






      raspberry-pi raspbian mqtt mosquitto






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      gatorbackgatorback

      3311 silver badge13 bronze badges




      3311 silver badge13 bronze badges

























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f533267%2fmosquitto-sub-d-t-armtronix-mqtt-error-unknown-option-d%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f533267%2fmosquitto-sub-d-t-armtronix-mqtt-error-unknown-option-d%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...