mirror of https://github.com/deavmi/doap
Tristan B. Velloza Kildaire
61e8d51207
- Run package lists updates prior |
||
---|---|---|
.github/workflows | ||
branding | ||
source/doap | ||
.gitignore | ||
LICENSE | ||
README.md | ||
dub.json | ||
todo.md |
README.md
doap
doap is a CoAP library for the D programming language.
Usage
Documentation is available here.
Making a request
CoapClient client = new CoapClient("coap.me", 5683);
CoapRequestFuture future = client.newRequestBuilder()
.payload(cast(ubyte[])"Hello this is Tristan!")
.token([69])
.post();
writeln("Future start");
CoapPacket response = future.get();
writeln("Future done");
writeln("Got response: ", response);
client.close();
License
This project is licensed under the LGPL v3.0.