JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 343
  • Score
    100M100P100Q93261F
  • License MIT

A CLI for CoAP

Package Exports

  • coap-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (coap-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CoAP-CLI

Build
Status

CoAP-CLI is a command line interface for CoAP, built on node.js and node-coap.

What is CoAP?

Constrained Application Protocol (CoAP) is a software protocol intended to be used in very simple electronics devices that allows them to communicate interactively over the Internet. - Wikipedia

Install

Install node.js, and then from a terminal:

npm install coap-cli -g

Usage

  Usage: coap [command] [options] url

  Commands:

    get                    performs a GET request
    put                    performs a PUT request
    post                   performs a POST request
    delete                 performs a DELETE request

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -n, --no-new-line        No new line at the end of the stream
    -p, --payload <payload>  The payload for POST and PUT requests

PUT and POST

PUT and POST requests body are sent from the standard input by default. E.g.

echo 'hello world' | coap post coap://localhost/message

If you want to type it you can end the standard input by pressing CTRL-D.

License

Copyright (c) 2013 Matteo Collina

node-coap is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.