1.1.9 • Published 5 years ago

coap-api v1.1.9

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Coap API

Build Status

Installation

npm install coap-api --save

Usage

discover

var coapApi = require("coap-api");
coapApi.discover(host)
  .then(discovered => {...})
  .catch(err => {...});

GET

var coapApi = require("coap-api");
coapApi.GET(host,resourceEndpoint,getQueryString)
  .then(response => {...})
  .catch(error => {...});

POST

var coapApi = require("coap-api");
coapApi.POST(host,resourceEndpoint,getQueryString,postPayloadString)
  .then(response => {...})
  .catch(error => {...});

PUT

var coapApi = require("coap-api");
coapApi.PUT(host,resourceEndpoint,getQueryString,postPayloadString)
  .then(response => {...})
  .catch(error => {...});

DELETE

var coapApi = require("coap-api");
coapApi.DELETE(host,resourceEndpoint)
  .then(response => {...})
  .catch(error => {...});

observe

var coapApi = require("coap-api");
coapApi.observe(host,resourceEndpoint,getQueryString,(response) => {...})
1.1.9

5 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago