mirror of
https://github.com/deavmi/doap
synced 2024-09-21 08:22:55 +02:00
CoAP library for D
Tristan B. Velloza Kildaire
f71f9e9594
- Implemented `toBytes(T)(T)` Utils (unittest) - Added unit test for the above |
||
---|---|---|
.github/workflows | ||
branding | ||
source/doap | ||
.gitignore | ||
dub.json | ||
LICENSE | ||
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.