Skip to content

Command Line Tools

Thomas Amberg edited this page Apr 13, 2019 · 27 revisions

coap

Install CoAP-CLI

curl

Install cURL

Usage

  • Get
    $ curl -v tmb.gr/hello.html
  • Put
    $ curl -vX PUT ...
  • Post
    $ curl -v --data '...' ...

mqtt

Install MQTT.js CLI

Usage

  • Subscribe
    $ mqtt sub -t 'mytopic' -h 'test.mosquitto.org'
  • Publish
    $ mqtt pub -t 'mytopic' -h 'test.mosquitto.org' -m 'Hello, world!'
Clone this wiki locally