-
Notifications
You must be signed in to change notification settings - Fork 28
Lite API: CoAP
Gyeonghwan Hong edited this page Dec 21, 2020
·
6 revisions
Parent Document: ANT APIs
CoAP API takes charge of supporting communications based on CoAP (Constrained Application Protocol).
The CoAP API is composed of CoAP-server functions, CoAP-client functions, and CoAP-common functions.
You need to load CoAP API module before you use its API as following.
var coapAPI = require('coap');
- CoAPServer CoAPAPI.createServer()
- void CoAPServer.onEvent(String eventType, Function handler)
- void CoAPServer.listen(Function callback)
- void CoAPResponse.end(String message)
- String CoAPResponse.get()
- CoAPRequest CoAPAPI.request(String url, String method)
- void CoAPRequest.onEvent(String eventType, Function handler)
- void CoAPRequest.end(void)
- Home
- About
- Getting Started
-
ANT APIs
- ANT Classic API
- ANT Lite API
- Getting Involved