-
Notifications
You must be signed in to change notification settings - Fork 18
Command Line Tools
Thomas Amberg edited this page Apr 13, 2019
·
27 revisions
-
https://github.com/mcollina/coap-cli/
$ sudo npm install coap-cli -g
- Get
$ coap get coap://coap.me/.well-known/core
- Post
$ coap post -p '...' coap://...
- Put
$ coap put -p '...' coap://...
- https://curl.haxx.se > Download
- Get
$ curl -v tmb.gr/hello.html
- Post text
$ curl -v --data 't=23' https://postb.in/...
- Post JSON
$ curl -v -H 'Content-Type: application/json' --data '{"t":23}' https://postb.in/...
- Put
$ curl -vX PUT --data 'hello' https://postb.in/...
-
https://github.com/mqttjs/MQTT.js
$ sudo npm install mqtt -g
- Publish
$ mqtt pub -t 'mytopic' -h 'test.mosquitto.org' -m 'Hello, world!'
- Subscribe
$ mqtt sub -t 'mytopic' -h 'test.mosquitto.org'