8000 GitHub - mathivanane/h5.coap: Implementation of the Constrained Application Protocol (CoAP) client for node.js.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mathivanane/h5.coap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0