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
  • Post
    $ curl -v --data '...' ...
  • Put
    $ curl -vX PUT ...

mqtt

Install MQTT.js CLI

Usage

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