项目作者: hobbyquaker

项目描述 :
Command line tool to remove retained MQTT topics by wildcard
高级语言: JavaScript
项目地址: git://github.com/hobbyquaker/mqtt-forget.git
创建时间: 2017-10-19T16:44:03Z
项目社区:https://github.com/hobbyquaker/mqtt-forget

开源协议:MIT License

下载


mqtt-forget

NPM version
Dependency Status
Build Status
XO code style
License

Command line tool to remove retained MQTT topics by wildcard

Install

$ sudo npm install -g mqtt-forget

Usage

  1. Usage: mqtt-forget <Options>
  2. Options:
  3. -d, --debug Enable debug messages
  4. -t, --topic MQTT topic, wildcards + and # allowed, may be repeated [required]
  5. -u, --url MQTT broker url [default: "mqtt://127.0.0.1"]
  6. -f, --force Remove topics without confirmation
  7. --help Show help
  8. --version Show version number

Examples

Remove all topics matching test/# via websocket connection

$ mqtt-forget -u ws://websocketbroker -t 'test/#'

Remove all retained topics without confirmation, broker with authentication

$ mqtt-forget -u mqtt://user:password@broker -t '#' -f

Contributing

Pull Requests welcome! :-)

License

MIT (c) 2017 Sebastian Raff