Skip to content

Command Line Tools

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

coap

Install CoAP-CLI

Usage

  • Get
    $ coap get coap://...
  • Post
    $ coap post -p '...' coap://...
  • Put
    $ coap put -p '...' coap://...

curl

Install cURL

Usage

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

Resources

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