subscribe.txt 1.0 KB

1234567891011121314151617181920212223242526
  1. Usage: mqtt subscribe [opts] [topic]
  2. Available options:
  3. -h/--hostname HOST the broker host
  4. -p/--port PORT the broker port
  5. -i/--client-id ID the client id
  6. -q/--qos 0/1/2 the QoS of the message
  7. --no-clean do not discard any pending message for
  8. the given id
  9. -t/--topic TOPIC the message topic
  10. -k/--keepalive SEC send a ping every SEC seconds
  11. -u/--username USER the username
  12. -P/--password PASS the password
  13. -l/--protocol PROTO the protocol to use, 'mqtt',
  14. 'mqtts', 'ws' or 'wss'
  15. --key PATH path to the key file
  16. --cert PATH path to the cert file
  17. --ca PATH path to the ca certificate
  18. --insecure do not verify the server certificate
  19. --will-topic TOPIC the will topic
  20. --will-message BODY the will message
  21. --will-qos 0/1/2 the will qos
  22. --will-retain send a will retained message
  23. -v/--verbose print the topic before the message
  24. -H/--help show this