@eight/h5.coap
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

h5.coap

Implementation of the Constrained Application Protocol (CoAP) client for node.js.

Build Status

Implemented client-side features:

Example

npm install git://github.com/morkai/h5.coap git://github.com/morkai/h5.linkformat
var coap = require('h5.coap');
var linkformat = require('h5.linkformat');

var client = new coap.Client();

var req = client.get('coap://127.0.0.1/.well-known/core', {
  accept: 'application/link-format'
});

req.on('response', function(res)
{
  if (res.isSuccess())
  {
    console.log(linkformat.parse(res.getPayload().toString()));
  }
  else
  {
    console.log(res.toPrettyString());
  }
});

TODO

  • More tests
  • Readme
  • Documentation
  • npm publish

License

This project is released under the MIT License.

/@eight/h5.coap/

    Package Sidebar

    Install

    npm i @eight/h5.coap

    Weekly Downloads

    22

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    113 kB

    Total Files

    18

    Last publish

    Collaborators

    • anushadatar
    • tatianaediger
    • chefgabe
    • syerunkar
    • caglar8s
    • jerryeightsleep
    • wesblummer
    • diegosolano
    • mjp9zn
    • mzdon
    • asadcr
    • eight-mfg-fatp
    • lednev
    • abhiin1947
    • 8s-cameron
    • nick-xitco-eight
    • brianschiffer
    • gabriel.fishman
    • dheinz
    • turacma
    • benjidoyle
    • eight-mfg
    • maghis
    • eight-ci
    • cirick
    • kodali2
    • jonathantsao
    • maya.maclean
    • developerfranky